Closed andersondeoliveiramachado closed 4 years ago
Replacing sendMessageToId with sendText, it works perfectly.
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
Requested api "sendMessageToId" Cannot read property 'evaluate' of undefined