Using the module pywhatkit you can send messages on WhatsApp,
I used the script:
import pywhatkit as w
w.sendwhatmsg("xxxxxxxx", " this is a generated msg",9,26)
x is the number
The problem is, all it does is load the message in WhatsApp's textbox, it does not send. Am I missing something?