Skip to content

Rafiqdevhub/Whatsapp_automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp Message Automation

A Python-based automation tool for scheduling and sending WhatsApp messages through WhatsApp Web.

Features

  • Send scheduled WhatsApp messages
  • Support for international phone numbers
  • User-friendly command-line interface
  • Time scheduling in 24-hour format
  • Automatic WhatsApp Web integration

Prerequisites

  • Python 3.13 or higher
  • Active internet connection
  • WhatsApp account
  • Access to WhatsApp Web
  • Web browser (default browser will be used)

Installation

  1. Clone the repository:
git clone hhttps://github.com/Rafiqdevhub/Whatsapp_automation.git
cd Whatsapp_automation
  1. Install dependencies using UV package manager:
uv add pywhatkit pyautogui requests pillow

Usage

  1. Run the script:
python main.py
  1. 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
  2. To quit the program:

    • Type 'q' when prompted for a phone number

Example

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

Important Notes

  • 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

Dependencies

  • pywhatkit: For WhatsApp automation
  • pyautogui: For GUI automation
  • requests: For HTTP requests
  • pillow: For image processing

Contributing

Feel free to submit issues and enhancement requests!

About

Whatsapp automation app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages