Actions27
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The node acts as a Telegram client interface, enabling interaction with Telegram chats through various operations. Specifically, the Open Chat operation opens a specified chat by its ID, making it active or accessible in the Telegram client session managed by the node.
This node is beneficial for automating Telegram workflows such as monitoring chats, sending messages, managing group memberships, and retrieving chat information. For example, you can use the Open Chat operation to programmatically open a chat before sending messages or fetching chat history, facilitating seamless Telegram automation within n8n workflows.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat to open. This is required to specify which chat should be opened. |
Output
The output is a JSON array containing the response from the Telegram client after attempting to open the chat. The structure typically includes details about the chat state or confirmation that the chat was successfully opened. The exact fields depend on Telegram's API response but generally confirm the chat is now active.
No binary data output is produced by this operation.
Dependencies
- Requires an active Telegram API authentication credential (an API key and associated login).
- Depends on a Telegram client session managed internally by the node connection manager.
- The node uses the Telegram TDLib (Telegram Database Library) via an internal client to perform actions.
- Proper login/authentication must be completed beforehand using the node’s login operations.
Troubleshooting
Error: "Session was closed or terminated. Please login again"
This indicates the Telegram client session has ended or become invalid. Resolve by re-authenticating using the login operation.Error: "Please login"
Occurs if the node attempts to perform operations without an active logged-in session. Use the login operation first.Unexpected auth states or command errors during login
Follow the provided guide at https://telepilot.co/login-howto for correct login procedures including MFA support.Ensure the Chat ID provided is valid and corresponds to an existing chat; otherwise, the operation may fail or return empty results.
Links and References
- TelePilot Login Guide — Instructions for authenticating your Telegram account.
- Telegram TDLib Documentation (for understanding underlying API calls): https://core.telegram.org/tdlib
This summary focuses on the Chat - Open Chat operation as requested, describing its purpose, inputs, outputs, dependencies, and common troubleshooting tips based on static analysis of the node source code.