A Python-based automation tool for scheduling and sending WhatsApp messages through WhatsApp Web.
- Send scheduled WhatsApp messages
- Support for international phone numbers
- User-friendly command-line interface
- Time scheduling in 24-hour format
- Automatic WhatsApp Web integration
- Python 3.13 or higher
- Active internet connection
- WhatsApp account
- Access to WhatsApp Web
- Web browser (default browser will be used)
- Clone the repository:
git clone hhttps://github.com/Rafiqdevhub/Whatsapp_automation.git
cd Whatsapp_automation
- Install dependencies using UV package manager:
uv add pywhatkit pyautogui requests pillow
- Run the script:
python main.py
-
Follow the interactive prompts:
- Enter the recipient's phone number with country code (e.g., 911234567890)
- Type your message
- Set the delivery time (hour and minutes)
- Wait for the message to be sent at the specified time
-
To quit the program:
- Type 'q' when prompted for a phone number
Welcome to WhatsApp Message Automation!
--------------------------------------
Enter phone number (with country code, e.g., 911234567890)
or 'q' to quit: 911234567890
Enter your message: Hello, this is a test message
Enter the hour (24-hour format, 0-23): 14
Enter the minutes (0-59): 30
Initiating WhatsApp Web...
Message will be sent at 14:30
- The application requires WhatsApp Web access
- First-time users will need to scan the QR code
- The program creates a log file (PyWhatKit_DB.txt) to track sent messages
- Ensure your phone is connected to the internet when messages are scheduled to be sent
- The default wait time for WhatsApp Web to load is 15 seconds
- pywhatkit: For WhatsApp automation
- pyautogui: For GUI automation
- requests: For HTTP requests
- pillow: For image processing
Feel free to submit issues and enhancement requests!