简体   繁体   中英

I'm not able to send message

I'm not able to send WhatsApp message this code load message to message box but not send it automatically?

import pywhatkit as py
py.sendwhatmsg("+91XXXXXXXXXX", "I love python", 15, 12)

Your code is correct but still it is not sending your message . so i think it is problem with pywhatkit or with your system you are using or with the version of python you are using . But still please try the code that is given below and let me know if it is working or not .Thanks

import pyautogui as pg
import pywhatkit as whatkit
whatkit.sendwhatmsg("+91XXXXXXXXX","I Love Python",15,12)
pg.press("enter")

It will work when I write my code this way!

import pyautogui as pg
import pywhatkit as whatkit
whatkit.sendwhatmsg("+918368499313","I Love Python",18,30)
pg.click()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM