Actions37
- Chat Actions
- Contact Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- Request Actions
- User Actions
Chat → Close Chat
AI-generatedOverview
This node operation allows users to close a specific chat in Telegram using the Telegram CoPilot integration. It is useful for managing chat sessions programmatically, such as closing inactive or completed chats to keep the chat list organized. For example, a user can automate closing customer support chats after the conversation ends.
Use Case Examples
- Close a chat by providing its Chat ID to mark it as closed in Telegram.
- Automate chat management by closing chats that meet certain criteria, such as inactivity or completion of a task.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat to be closed. This is required to specify which chat to close. |
Output
JSON
_- The response object from Telegram API indicating the result of the close chat operation.
Dependencies
- Requires Telegram API credentials (API ID, API Hash, and phone number) for 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 close the specified chat.
Links
- Telegram CoPilot Login Guide - Instructions on how to log in and authenticate the Telegram CoPilot node.