Actions40
- Chat Actions
- Custom Request Actions
- Group Actions
- File Actions
- Login Actions
- Message Actions
- User Actions
- Contact Actions
Overview
This node operation deletes one or more messages from a specified Telegram chat. It supports deleting messages either for all users or just for the current user, based on the 'revoke' flag. This is useful for managing chat content by removing unwanted or outdated messages programmatically.
Use Case Examples
- Deleting spam or irrelevant messages from a group chat to keep the conversation clean.
- Removing sensitive messages from a private chat for all participants.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat from which messages will be deleted. |
| Message IDs | Comma-separated list of message identifiers to be deleted from the chat. |
| Delete for All Users? | Boolean flag indicating whether the messages should be deleted for all users (true) or only for the current user (false). |
Output
JSON
_- Telegram API response object for the deleteMessages operation, indicating success or failure.
Dependencies
- Requires an API key credential for Telegram API access.
Troubleshooting
- Common errors include 'Unauthorized' or 'Session was closed or terminated' which indicate the need to re-authenticate the Telegram session.
- Errors related to invalid chat or message IDs if the provided identifiers do not exist or are incorrect.
- File system errors or permission issues are not applicable here but may occur in other operations involving files.
Links
- TelePilot Login Guide - Instructions for logging in and managing Telegram sessions for this node.