whatsapp-web.js
whatsapp-web.js copied to clipboard
Chat status method (online, typing, offline)
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like.
I would like to have the possibility to know a chat status. If it is online, typing or disconnected.
Describe an alternate solution.
No response
Additional context
No response
If you want to change status such as online, offline, and typing, you can use a function method like this:
client.sendPresenceAvailable() // online
client.sendPresenceUnvailable() // offline
chat.sendStateTyping() // typing
chat.sendStateRecording() // recording
I think he mean to get presence status, not to set one.
I think he mean to get presence status, not to set one.
Exactly
I have the same doubt, knowing if the person is typing would help my bot to wait until he stops typing before sending a message
If you want to change status such as online, offline, and typing, you can use a function method like this:
client.sendPresenceAvailable() // online client.sendPresenceUnvailable() // offline chat.sendStateTyping() // typing chat.sendStateRecording() // recording
Not work (