Actions116
- š¬ Chats Actions
- š¤ Contacts Actions
- š„ļø Sessions Actions
- š Profile Actions
- š¼ļø Screenshot Actions
- š¤ Chatting Actions
- š¢ Channels Actions
- š¢ Status Actions
- š„ Groups Actions
- Add Participants
- 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
- Get Info Admin Only
- Set Messages Admin Only
- Get Messages Admin Only
- Get Invite Code
- Revoke Invite Code
- Get Participants
- Remove Participants
- Promote To Admin
- ā Presence Actions
- š·ļø Labels Actions
- š Observability Actions
- š Auth Actions
Overview
This node operation deletes a specific message from a chat session. It is useful in scenarios where you need to programmatically remove messages from a chat, such as moderating content, correcting errors, or managing chat history. For example, you can automate the deletion of inappropriate messages in a customer support chat or remove outdated notifications.
Use Case Examples
- Deleting a message by specifying the session, chat ID, and message ID to keep the chat clean and relevant.
- Automating message removal in a chat application to comply with data retention policies.
Properties
| Name | Meaning |
|---|---|
| Session | The name of the chat session from which the message will be deleted. |
| Chat Id | The unique identifier of the chat containing the message to be deleted. |
| Message Id | The unique identifier of the message to be deleted. |
| Request Options | Additional options to control the request behavior, such as batching, SSL certificate validation, proxy settings, and timeout. |
Output
JSON
success- Indicates whether the message deletion was successful.messageId- The ID of the deleted message.chatId- The ID of the chat from which the message was deleted.
Dependencies
- Requires an API key or authentication token to access the chat service.
Troubleshooting
- Ensure the session, chat ID, and message ID are correct and exist; otherwise, the deletion will fail.
- Check network connectivity and proxy settings if requests time out or fail.
- If SSL certificate validation fails and the option to ignore SSL issues is not enabled, the request will be rejected.