Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat status method (online, typing, offline) #2636

Open
1 task done
aronilie opened this issue Nov 18, 2023 · 4 comments
Open
1 task done

Chat status method (online, typing, offline) #2636

aronilie opened this issue Nov 18, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@aronilie
Copy link

Is there an existing issue for this?

  • 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 aronilie added the enhancement New feature or request label Nov 18, 2023
@RC047
Copy link
Contributor

RC047 commented Dec 8, 2023

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

@yaneony
Copy link

yaneony commented Apr 12, 2024

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

@aronilie
Copy link
Author

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

Exactly

@nachobascar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants