question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sendwhatmsg_to_group() does not work properly

See original GitHub issue

Description

I have been using this function for weeks now to send a message to a groupchat automatically each week. It was working fine up to this week. It looks like it is something from WhatsApp side that is messing it up. The link that shows up in the searchbar is: https://web.whatsapp.com/accept?code=WA_GROUP_KEY where WA_GROUP_KEY is the key to the WhatsApp group. In a second, this link changes into https://web.whatsapp.com and I get loaded into web WhatsApp and not the correct group. Consequently, the pre-programmed messaged can’t be sent since it does not have access to the groupschat.

To Reproduce

Use the sendwhatmsg_to_group() to send any message to a WhatsApp groupschat. The group_key can be obtained from the invite URL the host of the WhatsApp group can generate.

Screenshots

If applicable, add Screenshots to help explain your Problem

Version Information

  • OS: Windows 10 64-bit
  • Browser: Google Chrome
  • Python: 3.7
  • PyWhatKit: 5.1

You can Check the PyWhatKit Version using

print(pywhatkit.__VERSION__)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
zarif98sjscommented, Dec 2, 2021

I am having the same issue. The link that shows up in the searchbar is: https://web.whatsapp.com/accept?code=WA_GROUP_KEY where WA_GROUP_KEY is the key to the WhatsApp group. In a second, this link changes into https://web.whatsapp.com and I get loaded into web WhatsApp and not the correct group.

1reaction
aaronwtrcommented, Feb 7, 2022

Thanks for looking at this issue! It is now working again with exactly the same setup as with which I reported the problem originally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pywhatkit.sendwhatmsg_to_group not working - Stack Overflow
I use this code and works: import pywhatkit pywhatkit.sendwhatmsg_to_group("1a2b3c4d5e6f7g8h9i", "Hello world", 17,7). Parameters: Group ID ...
Read more >
Not able to send message using sendwhatmsg function #20
Describe the bug Not able to send message using sendwhatmsg function. It is just copying the message in the text field of recipient...
Read more >
pywhatkit.sendwhatmsg_to_group function is not working
It might sound crazy but yesterday the function pywhatkit.sendwhatmsg_to_group worked fine with me but today I do not seem to make it work....
Read more >
Python Pywhatkit - Send WhatsApp Messages Using Python
This post will introduce you to the python pywhatkit library and how to use it to send WhatsApp messages automatically using a few...
Read more >
PyWhatKit: How to Automate Whatsapp Messages with Python
The sendwhatmsg_instantly() function will send a Whatsapp message as soon as you run the code, hence the "instantly" in the name. Two parameters ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found