This project allows you to schedule and send WhatsApp messages using the Twilio API. You can input the recipient's name, phone number, message, and the date and time you want the message to be sent.
-
Clone the repository:
git clone https://github.com/nilaysarma/whatsapp-message-automation.git
-
Install the required libraries:
pip install twilio
-
Open the main.py file and fill account_sid and auth_token with your Twilio account credentials:
account_sid = 'your_account_sid' auth_token = 'your_auth_token'
-
Run the script:
python main.py
-
Follow the prompts to enter the recipient's name, phone number, message, and the date and time you want the message to be sent.
Enter the recipient name: Nilay
Enter the recipient WhatsApp number with country code: +910123456789
Enter the message you want to send to Nilay: Hi, this is an automated message.
Enter the date you want to send the message (YYYY-MM-DD): 2023-12-23
Enter the time you want to send the message (HH:MM in 24 hour format): 12:28
Message scheduled to be sent to Nilay at 2023-12-23 12:28:00.
Message sent successfully! Message SID: SMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX