Skip to content

How to send a Whatsapp message with Python?

We are going to use pywhatkit pip module to send Whatsapp messages in Python.

Installation

pip install pywhatkit 
Advertisements

Syntax

pywhatkit.sendwhatmsg("receiver mobile number","message",hours,minutes)

Example

Advertisements
#Install pywhatkit -- pip install pywhatkit 
import pywhatkit
pywhatkit.sendwhatmsg('+919876543210', 'Hey hello! This is a message from python pywhatkit', 13,16)
See also  Scraping using Python and BeautifulSoup4
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.