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 797 forks source link

Store.Chat.find error #909

Open blbraga opened 4 years ago

blbraga commented 4 years ago

Hi! When i enter on a new group, and try to send message, i use Store.Chat.find(id), is returning a error:

ModelCreateError: Unknown

I tried to use this on async function which i saw on another issue:

const chatId = new Store.UserConstructor(jid_grupo, {intentionallyUsePrivateConstructor: true}); let chat = await Store.Chat.find(chatId).then((r)=>{return r;}); chat.sendMessage(message);

Returning the same error, i can't send a message to my new group. I tried to create a new model, to add to Store.Chat.models, but not working too.

mayconmano commented 4 years ago

same problem here