Actions37
- Chat Actions
- Contact Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- Request Actions
- User Actions
Chat → Delete Chat
AI-generatedOverview
This node operation deletes a specified chat in Telegram using the Telegram CoPilot API. It is useful for automating chat management tasks such as removing unwanted or obsolete chats from a user's Telegram account.
Use Case Examples
- Automatically delete a chat by its ID after a certain event or condition is met.
- Clean up chats in bulk by iterating over chat IDs and deleting them programmatically.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat to be deleted. |
Output
JSON
_- The response object from the Telegram API after deleting the chat, typically containing status or confirmation details.
Dependencies
- Requires an API key credential for Telegram CoPilot API authentication.
Troubleshooting
- If the node throws an error 'A closed client cannot be reused, create a new Client', it means the Telegram session was closed or terminated. The user should log in again using the login process.
- An 'Unauthorized' error indicates the session is not authenticated. The user should re-authenticate by logging in again.
- Ensure the Chat ID provided is valid and the authenticated user has permission to delete the chat.
Links
- Telegram CoPilot Login Guide - Instructions for logging in and authenticating the Telegram CoPilot node.