Want to send the same WhatsApp message 100 times using Python? Whether you’re playing a harmless prank or automating a love spam, this is easily possible using a simple automation script with pywhatkit or pyautogui.
Option 1: Using pyautogui (Keyboard Automation Method)
This method types and sends your message repeatedly in WhatsApp Web.
✅ Requirements:
- Install Python
Install pyautogui with:
pip install pyautogui
- Open WhatsApp Web and click the chat box where you want to spam
🧠 Python Code:
import pyautogui
import time
time.sleep(5) # Gives you time to click on the chat box
for i in range(100):
pyautogui.typewrite(“I love you ❤️”)
pyautogui.press(“enter”)
Run the code, quickly switch to your WhatsApp window, and watch it send the message 100 times!
Option 2: Using pywhatkit (Scheduled WhatsApp Message Sender)
This one is better if you want to send a message at a specific time, but it sends only once per run, so not ideal for 100 repeats unless you loop it smartly.
✅ Requirements:
pip install pywhatkit
🧠 Sample Code for One-Time Message:
import pywhatkit
pywhatkit.sendwhatmsg(“+1234567890”, “Hey! This is an automated message ❤️”, 15, 30)
You could combine it with a loop and timer delay for multiple sends—but pyautogui is more straightforward for spamming 100 times quickly.
When to Use This
💬 To flood your BFF or partner with love
😂 For harmless, funny text pranks
🎉 To send repetitive event reminders
🙏 To send “Sorry” 100 times in style
💌 To say “I love you” 100 times without hurting your fingers
💡 Reminder: Use responsibly. Don’t spam anyone who wouldn’t appreciate it. Always spread love, not annoyance.

