whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Chat status method (online, typing, offline)

Open aronilie opened this issue 1 year ago • 5 comments

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

aronilie avatar Nov 18 '23 10:11 aronilie

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

RC047 avatar Dec 08 '23 11:12 RC047

I think he mean to get presence status, not to set one.

yaneony avatar Apr 12 '24 14:04 yaneony

I think he mean to get presence status, not to set one.

Exactly

aronilie avatar Apr 15 '24 08:04 aronilie

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

nachobascar avatar Apr 29 '24 19:04 nachobascar

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 (

Solo-it avatar Jun 08 '24 13:06 Solo-it