WebWhatsapp-Wrapper icon indicating copy to clipboard operation
WebWhatsapp-Wrapper copied to clipboard

cannot read properties of undefined (reading 'sendmessage') for numbers not in contact list

Open RMG94 opened this issue 1 year ago • 3 comments

  • Advertising of monetized Frameworks is strictly forbidden and will be reported

  • [ ] The language must be English, if you are not fluent in English consider using: https://www.deepl.com/translator if it supports your native language

  • [ ] Please check if any other issue already adresses your concerns or if a recent PR is already fixing the mentioned issue

  • [ ] Please make sure to format your code, and to mark your code as such, with the provided tools from github (upper right of this box)

  • [ ] Please state your Operating System (inlcuding version), your Python Version, and your installation way (pip, from repo) and if you are running it inside a docker container

  • [ ] Note that the pip installation might be behind, so try to fix your issue with a pull from the repo and update to the most recent version

  • [ ] Follow the Stackoverflow Guidelines (https://stackoverflow.com/help/how-to-ask) when in need of help

  • [ ] Consider posting your question on Stackoverflow if it is a general programming question

  • [ ] There will be no support for spamming, or other mischief

  • [ ] There will be no support for finding professionals

RMG94 avatar Oct 23 '23 03:10 RMG94

sendmessage is reserved for contacts (each contact and group has an id that must be passed to sendmessage).

Diegocndd avatar Feb 14 '24 21:02 Diegocndd

Thank you @Diegocndd. What should I use to send a message to a number not exist in my contact list?

RMG94 avatar Mar 19 '24 09:03 RMG94

I think the only way is using the link https://api.whatsapp.com/send?phone=xxxxxxxxx&text=yyyyyyy

Diegocndd avatar Mar 19 '24 13:03 Diegocndd