DEV Community 👩‍💻👨‍💻

AKSH DESAI
AKSH DESAI

Posted on

How to send Multiple Messages on whatsapp through Python ?

Write this command on Terminal and Press Enter:

pip install pyautogui
Enter fullscreen mode Exit fullscreen mode

Python Code

import pyautogui
import time
time.sleep(3)

count = 0
while(count <= 100):
    pyautogui.typewrite('hi')
    pyautogui.press('enter')
    count += 1

Enter fullscreen mode Exit fullscreen mode

Here Messages send on those whatsapp group where your mouse cursor is available.

Output

Output Imag

Thank You.
You can follow us on:
Youtube
Instagram

Top comments (0)

We are hiring! Do you want to be our Senior Platform Engineer? Are you capable of chipping in across sysadmin, ops, and site reliability work, while supporting the open source stack that runs DEV and other communities?

This role might just be for you!

Apply now