Open VinicSilva opened 4 years ago
window.Store.WapQuery.sendChatstateComposing('554599999999@c.us')
@andersondeoliveiramachado The sendChatstateComposing function only works on the first call, when I call again, is not as successful.
Is it missing any parameters? Is it a callback or promise?
fist call is to start typing, second one is to stop typing
Making these two calls works, but then when I try to do it the same way, it doesn't work anymore.
please share the code and the error
I use this code in the browser: https://raw.githubusercontent.com/mukulhase/WebWhatsapp-Wrapper/master/webwhatsapi/js/wapi.js. I make both calls and it works the first time. Then I try to do the same process for the same number, but it doesn't show the 'typing' again.
are you logged into whatsapp web with a different number?
Yes, I have another number.
I used this one. It only works the first time I make both calls. but if I call again to run typing, it doesn't work anymore.
It only works the first time.
If testing both calls will work, shows the typing, but if you do the same process again, it no longer appears.
try like the source code: await Store.WapQuery.sendChatstateComposing(chatId)
I sent some prints trying to demonstrate ...
I want to be able to do several times the typing be triggered ...
try with await Store.WapQuery.sendChatstateComposing("number@c.us")
without window.
Does it still work? I tried await window.Store.WapQuery.sendChatstateComposing ('5581xxxxxxx@c.us');
And there is no "Typing"
This is working for me, with the following downside: Only works once during 10 seconds. If you send a message to that chat it works again. Maybe someone could make it better.
` const sendTyping = async (chat) =>{
await window.Store.WapQuery.sendPresenceAvailable() window.Store.WapQuery.sendChatstateComposing(chat)
} `
Hi guys, I've tried all suggestions, but is not working... any updates?
How can I do to enter status by typing before sending the message to the contact?