Actions28
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The Telegram CoPilot node for n8n allows you to interact with Telegram's API, automating various chat-related operations. Specifically, for the Chat resource and the Open Chat operation, this node enables you to programmatically open a specific chat by its ID. This can be useful in workflows where you need to trigger actions or monitor activity in a particular Telegram chat.
Common scenarios:
- Automating the process of opening a chat before sending messages or performing other chat-specific actions.
- Integrating Telegram chat management into broader automation workflows (e.g., CRM updates, notifications).
- Preparing a chat for further automated interactions within a sequence of n8n nodes.
Example use case:
You want to ensure a chat is active/open before sending a message or retrieving its history as part of a customer support workflow.
Properties
Display Name | Type | Description |
---|---|---|
Chat ID | String | ID of the chat to open. This is required and should be the unique identifier for the target Telegram chat. Example: "122323" |
Output
The output of the Open Chat operation will be a JSON object containing the result of the openChat
API call from Telegram. The structure typically includes details about the opened chat, such as:
{
"_": "ok"
}
- The actual structure may include additional fields depending on Telegram's response, but generally, a successful operation returns an acknowledgment (e.g.,
{ "_": "ok" }
).
Dependencies
- External Service: Requires access to the Telegram API via the TelePilot integration.
- Credentials: You must configure and provide valid
telePilotApi
credentials in n8n, including your Telegram API ID, API Hash, and phone number. - n8n Configuration: No special environment variables are needed beyond standard credential setup.
Troubleshooting
Common issues:
- Invalid Chat ID: If the provided Chat ID does not exist or is incorrect, the operation may fail with an error from Telegram.
- Not Authenticated: If your Telegram session is not active or has expired, you may receive errors like "Please login: https://telepilot.co/login-howto".
- Session Closed: If the client session was closed, you might see "Session was closed or terminated. Please login again".
How to resolve:
- Double-check the Chat ID for accuracy.
- Ensure your Telegram credentials are correct and that you are logged in.
- If you encounter session errors, follow the login instructions at https://telepilot.co/login-howto and reconnect your account.