show Typing while doing backend stuff
GonzalezAtWork opened this issue · comments
Hello guys,
I did not found any way to send/show a "typing" for the client while doing backend work.
Is there a way?
thanks!
You could call client.SendChatPrecence(chat, state, media)
:
Lines 115 to 138 in 350073d
Awesome, worked like a charm:
to start typing:
mycli.WAClient.SendChatPresence(userJid, types.ChatPresenceComposing, "")
to stop it:
mycli.WAClient.SendChatPresence(userJid, types.ChatPresencePaused, "")