Open maticzd opened 3 years ago
What is the problem? Can you send a screen of the error?
this is new issue the function send_message_to_id is not working but the function send_media is still working
maybe this is not best solution, but work for me in file init.py under function send_message_to_id i change to this from def send_message_to_id(self, recipient, message): return self.wapi_functions.sendMessageToId(recipient, message)
to
def send_message_to_id(self, recipient, message): return self.wapi_functions.sendMessage(recipient, message)
@demontrasea
Try this solution it worked for me
https://github.com/open-wa/wa-automate-nodejs/issues/1748#issuecomment-853545581
i have the same error.
send message to ID dont work. someone can help me?
i have the same error. send message to ID dont work. someone can help me?
https://github.com/open-wa/wa-automate-nodejs/issues/1748#issuecomment-853545581
edit your wapi.js
/// replace in your code
window.WAPI.sendMessageToID = function (id, message, done) { try { // Create user var idx = new window.Store.UserConstructor(id, {intentionallyUsePrivateConstructor: true}); // Get chat var chat = window.Store.Chat.find(idx); // Send message chat._value.sendMessage(message); } catch (e) { return false;
} if (done !== undefined) done(false); return false; }; //Teste window.WAPI.sendMessageToID2 ('00000000000@c.us','test');
this is new issue the function send_message_to_id is not working but the function send_media is still working