sendwhatmsg_to_group() does not work properly
See original GitHub issueDescription
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:
- Created 2 years ago
- Comments:16 (5 by maintainers)
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.
Thanks for looking at this issue! It is now working again with exactly the same setup as with which I reported the problem originally.