Actions116
- 🖥️ Sessions Actions
- 🔑 Auth Actions
- 🆔 Profile Actions
- 🖼️ Screenshot Actions
- 📤 Chatting Actions
- 📢 Channels Actions
- 🟢 Status Actions
- 💬 Chats Actions
- 👤 Contacts Actions
- 👥 Groups Actions
- Create Group
- Get Groups
- Join Info Group
- Join Group
- Refresh Groups
- Get Group
- Delete Group
- Leave Group
- Get Chat Picture
- Set Picture
- Delete Picture
- Set Description
- Set Subject
- Set Info Admin Only
- Get Info Admin Only
- Set Messages Admin Only
- Get Messages Admin Only
- Get Invite Code
- Revoke Invite Code
- Get Participants
- Add Participants
- Remove Participants
- Promote To Admin
- Demote To Admin
- ✅ Presence Actions
- 🏷️ Labels Actions
- 🔍 Observability Actions
✅ Presence → Set Presence
AI-generatedOverview
This node sets the presence status for a chat session in a messaging application. It allows users to specify the session name, the chat ID (which can be a group or contact ID), and the presence status such as offline, online, typing, recording, or paused. This is useful for indicating user activity or availability in real-time communication scenarios, such as showing when a user is typing or currently online.
Use Case Examples
- Setting a user's presence to 'typing' while they compose a message.
- Marking a user as 'offline' when they log out.
- Indicating 'recording' status during a voice message recording.
Properties
| Name | Meaning |
|---|---|
| Session | The name of the session to set presence for. |
| Chat Id | The chat identifier, which can be either a group ID or a contact ID, to specify where the presence status applies. |
| Presence | The presence status to set, such as offline, online, typing, recording, or paused. |
| Request Options | Additional options for the request such as batching, SSL certificate handling, proxy settings, and timeout configuration. |
Output
JSON
chatId- The chat identifier for which the presence was set.presence- The presence status that was set.session- The session name associated with the presence status.
Dependencies
- Requires an API key credential or authentication token to connect to the messaging service.
Troubleshooting
- Ensure the chat ID is valid and corresponds to an existing contact or group.
- Verify that the session name is correctly specified and active.
- Check network connectivity and proxy settings if requests fail.
- If SSL errors occur, consider enabling the option to ignore SSL issues, but be aware of security risks.
- Timeout errors may require increasing the timeout setting in request options.