Actions27
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The node "Telegram CoPilot" provides an interface to interact with Telegram through various resources and operations. Specifically, the Chat - Close Chat operation allows users to close a chat session by its ID. This can be useful in scenarios where you want to programmatically manage chat sessions, for example, closing inactive or completed chats to keep the chat list clean or to trigger follow-up workflows after a chat is closed.
Practical examples:
- Automatically close a customer support chat once the issue is resolved.
- Close group chats after an event ends.
- Manage chat lifecycle in automated Telegram bots or integrations.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat to close. This is required to specify which chat session should be closed. Example: "122323". |
Output
The output is a JSON array containing the result of the closeChat invocation. The structure corresponds to the Telegram API response for closing a chat, typically including confirmation or status details about the closed chat.
No binary data output is involved in this operation.
Example output snippet (conceptual):
[
{
"_": "chatClosed",
"chat_id": 122323,
"status": "closed"
}
]
Dependencies
- Requires an active Telegram API authentication credential (an API key/token).
- Depends on the TelePilotNodeConnectionManager to manage Telegram client sessions.
- The node requires proper login/authentication before performing chat operations.
- Network access to Telegram servers is necessary.
Troubleshooting
Error: "Session was closed or terminated. Please login again"
This indicates that the Telegram client session has expired or been closed. The user must re-authenticate using the login flow described at https://telepilot.co/login-howto.Error: "Please login"
The node attempted to perform an operation without an active authenticated session. Ensure the login operation is completed successfully before calling chat operations.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 is correct and accessible by the authenticated user.Network or API errors
Temporary network issues or Telegram API rate limits might cause failures. Retry after some time or check network connectivity.
Links and References
- TelePilot Login Guide — Instructions for authenticating your Telegram account.
- Telegram TDLib Documentation — Underlying Telegram API used by TelePilot.
- TelePilot Official Site — More information about the TelePilot node and features.