We can automate WhatsApp and send WhatsApp message using python by running a small python script.
The simplest way of doing so using the pywhatkit module which utilizes the web.whatsapp.com webpage to automate message sending to any number on WhatsApp.
pip install pywhatkit{codeBox}
Watch live code & Demo of Sending WhatsApp Message using Python:
Here’s what the script will look like.
import pywhatkit as kit# pip install pywhatkitkit.sendwhatmsg("+9198XXXXXXX", "Subscribe this channel for more python code videos", 11,15)# Receiver number with country code: +9198XXXXXXXX# Message: Subscribe this channel for more python code videos# Time to send in Hours: 11# Time to send in Minutes: 15{codeBox}
Important: Make sure you web.whatsapp.com is open and logged in at 11:15.{alertError}
Stay updated with Developers Group official social media channels:
0 Comments