import pyautogui
import time
def send_whatsapp_message(message, count):
for _ in range(count):
pyautogui.typewrite(message) # Type the message
pyautogui.press("enter") # Press Enter to send
time.sleep(0.3) # Wait for 1 second
# Message to send
message = "Hey Bro Faheem kesa he ?"
message_count = 10
print("You have 10 seconds to switch to WhatsApp Web and open the chat...")
time.sleep(10)
send_whatsapp_message(message, message_count)
print("Messages sent.")
Editor is loading...