Actions116
- 💬 Chats Actions
- 👤 Contacts Actions
- 👥 Groups Actions
- 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
- 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
- 🖥️ Sessions Actions
- 🆔 Profile Actions
- 🖼️ Screenshot Actions
- 📤 Chatting Actions
- 📢 Channels Actions
- 🟢 Status Actions
- ✅ Presence Actions
- 🏷️ Labels Actions
- 🔍 Observability Actions
- 🔑 Auth Actions
Overview
This node operation clears messages in a specified chat session. It is useful for scenarios where you want to delete all messages from a particular chat, such as resetting a conversation or managing chat history. For example, in a customer support workflow, you might clear chat messages after a session ends to maintain privacy or reduce clutter.
Use Case Examples
- Clear all messages in a chat session identified by a session name and chat ID.
- Use batching options to control the rate of requests when clearing messages in bulk.
Properties
| Name | Meaning |
|---|---|
| Session | The name of the chat session from which messages will be cleared. |
| Chat Id | The unique identifier of the chat whose messages are to be cleared. |
| Request Options | Additional options to control the request behavior, such as batching, SSL certificate validation, proxy settings, and timeout duration. |
Output
JSON
success- Indicates whether the messages were successfully cleared.clearedMessageCount- The number of messages that were cleared from the chat.
Dependencies
- Requires an API key credential or authentication token to access the chat service.
Troubleshooting
- Ensure the session name and chat ID are correct and correspond to an existing chat session.
- If requests time out, consider increasing the timeout setting or adjusting batching options to reduce request frequency.
- If SSL certificate errors occur, enable the option to ignore SSL issues, but be aware of security risks.
- Verify proxy settings if a proxy is required for network access.