Actions27
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
This node integrates with Telegram via the TelePilot API, enabling automation of various Telegram chat-related actions. Specifically, the Delete Chat operation allows users to delete a chat by providing its unique chat ID. This is useful for managing and cleaning up chats programmatically, such as removing obsolete or unwanted conversations in bulk or as part of workflow automations.
Practical examples include:
- Automatically deleting chats after processing their messages.
- Cleaning up group or private chats based on certain triggers.
- Managing chat lifecycle within customer support or notification systems.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat to be deleted. This is a required string input. |
Output
The output is a JSON array containing the result of the delete chat operation. Typically, this will include confirmation or status information returned from the Telegram API about the deletion request.
No binary data output is produced by this operation.
Example output structure (simplified):
[
{
"id": 123456789,
"title": "Deleted Chat Title",
"type": "chatType",
"status": "deleted"
}
]
(Note: Actual fields depend on Telegram's response.)
Dependencies
- Requires an active Telegram API authentication credential (an API key/token).
- Depends on the TelePilotNodeConnectionManager to manage Telegram client sessions.
- The user must be logged in via the login process before performing chat operations.
- Network access to Telegram's API endpoints is necessary.
Troubleshooting
Error: "Session was closed or terminated. Please login again"
This indicates that the Telegram client session has expired or been closed. Re-authenticate using the login flow before retrying.Error: "Please login"
The node attempted an operation without an active authenticated session. Use the login operation first.Invalid Chat ID or Chat Not Found
If the provided chat ID does not exist or is invalid, the Telegram API may return an error. Verify the chat ID correctness.Unauthorized Errors
Usually caused by invalid or expired credentials. Refresh or re-enter the API authentication token.
Links and References
- TelePilot Documentation — Guide for login and usage.
- Telegram Bot API — Official Telegram API reference (general context).