mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.03k stars 796 forks source link

SendMessage don't Work. File: WAPI.js #1069

Open rebsonm opened 3 years ago

rebsonm commented 3 years ago

Hey, guys. When trying to send messages to unsaved contacts (and who have no conversation history), the message will not go. The following message appears:

VM10531:300 Uncaught TypeError: Cannot read property 'sendMessage' of undefined at Object.window.WAPI.getChat (:300:32) at Object.window.WAPI.sendMessage (:780:21) at :1:6

vincetota commented 3 years ago

Same issue here...

mraakashjoshi commented 3 years ago

Also Not send on New number..it is working only if chat with that number exist.

erm3nda commented 2 years ago

Close that, has been already answered, to replace FindChat functions and to to use internal constructor for new chat.