Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows- Message won't send itself #231

Open
HassanSayyed opened this issue Aug 28, 2022 · 5 comments · May be fixed by #248
Open

Windows- Message won't send itself #231

HassanSayyed opened this issue Aug 28, 2022 · 5 comments · May be fixed by #248
Labels
bug Something isn't working

Comments

@HassanSayyed
Copy link

Description

Am working on Windows - the WhatsApp opens itself and the message get written to the right person, but then the send function isn't triggered.
even with adding wait_time still didnt send.

Screenshots

code
whatsapp

Version Information

  • OS: [ Windows 10]
  • Browser: [ Google Chrome]
  • Python: [3.10.4]
  • PyWhatKit: [5.3 (Stable)]
@HassanSayyed HassanSayyed added the bug Something isn't working label Aug 28, 2022
@HassanSayyed HassanSayyed changed the title MAC - Message won't send itself Windows- Message won't send itself Aug 28, 2022
@barbixxxa
Copy link

barbixxxa commented Sep 9, 2022

same thing here in linux os. This happens only for a phone number, for a group the message is sent

@ns696
Copy link
Contributor

ns696 commented Sep 9, 2022

Try pip uninstall pywhatkit
And then
pip install git+https://github.com/Ankit404butfound/PyWhatKit.git

@barbixxxa
Copy link

same thing

@AMondaini
Copy link

Hi,
When, whatsapp open chat, the textbox is focused.
Edit the lib whats.py, comment the line "pg.click(core.WIDTH / 2, core.HEIGHT / 2)" :

 web.open(f"https://web.whatsapp.com/send?phone={phone_no}&text={quote(message)}")
    time.sleep(4)
    #pg.click(core.WIDTH / 2, core.HEIGHT / 2)
    time.sleep(wait_time - 4)
    core.findtextbox()
    pg.press("enter")

It should work.

@hayskytech
Copy link

Increase the message sending delay time. Here I changed to 40. Sometimes web whatsapp will take time load messages.

pywhatkit.sendwhatmsg("+910123456789", "Hi", 13, 30, 40, True, 2)

@ladyluk ladyluk linked a pull request Dec 13, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants