Create new chat
Hello! I can't send a message to my contact. I have it in my contacts core.contact shows a contact, but core.chat gives null. if you write to the contact from the phone and then look again at core.chat only then it is not null
Thank you all! I found a solution. Who is interested here is an example:
var id = new window.Store.UserConstructor("[email protected]");
Store.Chat.find(id).then(function(chat) {
chat.markComposing();
chat.sendMessage("....");
});
you can write to contacts that you do not have in your phone
How u made this work? create a page and executed on browser?
@BaukaKZ did you use the store hotfix?
I'm unable to use chat.sendmessage() (https://github.com/yotam180/WhatsappAPI/issues/56)
Would love to know how you got that working!
window.Store.UserConstructor("[email protected]");
Did you solve the problem, I am facing the same, would you post whatever solution you have here? , please.