robertsLando / node-red-contrib-whatsappbot

Whatsapp Bot 🤖 for Node-Red
MIT License
38 stars 18 forks source link

Requested api "sendMessageToId" Cannot read property 'evaluate' of undefined #8

Closed andersondeoliveiramachado closed 4 years ago

andersondeoliveiramachado commented 4 years ago

Requested api "sendMessageToId" Cannot read property 'evaluate' of undefined

image image

andersondeoliveiramachado commented 4 years ago

image

Replacing sendMessageToId with sendText, it works perfectly.

robertsLando commented 4 years ago

sendText is working but it doesn't allow you to send messages to non existing chat. It only works for existing ones. Are you using latest version of this package? Have you updated wa automate to latest version? It is working on my instance and I think it's a compatibility issue with the patch.js of this package that I have made on purpose to add that feature. But seems that with latest versions of wa automate the page is now named _page so that could be the issue why you see that error