Actions33
- Chat Actions
- Custom Request Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
This node integrates with Telegram via the TelePilot API, enabling automation and interaction with Telegram chats, messages, users, groups, files, and contacts. Specifically, the "Get Messages" operation under the Message resource retrieves a specific message from a Telegram chat by its chat ID and message ID.
Common scenarios where this node is beneficial include:
- Fetching details of a particular message in a chat for processing or logging.
- Automating workflows that require reading message content or metadata.
- Integrating Telegram message data into other systems or databases.
Practical example:
- A user wants to retrieve a message by its ID from a group chat to analyze its content or forward it elsewhere automatically.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the Telegram chat where the message resides. |
| Message ID | The unique identifier of the message within the specified chat to be retrieved. |
Output
The output is an array of JSON objects representing the Telegram message data returned by the TelePilot API. Each object contains detailed information about the message, including but not limited to:
- Message content (text, media, etc.)
- Sender information
- Timestamps
- Message metadata such as message type, reply info, and more
If the node supports binary data output (e.g., for media files), it would provide the corresponding binary data fields; however, for the "Get Messages" operation, the output is primarily JSON describing the message.
Dependencies
- Requires a valid Telegram API authentication credential (an API key/token) configured in n8n.
- Depends on the TelePilot Node Connection Manager to handle Telegram client sessions and API calls.
- No additional external services are required beyond Telegram's API.
Troubleshooting
Error: "Please login" or "Unauthorized"
This indicates the Telegram session is not authenticated or has expired. Resolve by performing the login process using the appropriate login operations (e.g., via a ChatTrigger node with login commands). Refer to https://telepilot.co/login-howto for guidance.Error: "A closed client cannot be reused"
The Telegram client session was closed unexpectedly. Re-login is necessary.Invalid Chat ID or Message ID
Ensure the provided IDs are correct and correspond to existing chats/messages accessible by the authenticated account.Network or API errors
Check network connectivity and Telegram API status. Also verify that the API credentials have sufficient permissions.
Links and References
- TelePilot Login Guide — Instructions for authenticating your Telegram account.
- Telegram Bot API Documentation — Official Telegram API reference (general context).
- TelePilot Official Website — For additional resources and support.