Actions26
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
This node, named "Telegram CoPilot," enables interaction with the Telegram messaging platform through various resources and operations. Specifically, for the Message resource and the Send Text Message operation, it allows sending text messages to a specified chat in Telegram.
Common scenarios where this node is beneficial include:
- Automating notifications or alerts by sending messages to Telegram chats.
- Integrating Telegram messaging into workflows for customer support or team communication.
- Sending replies or updates programmatically based on external triggers or data.
For example, you can use this node to send a custom message to a group chat whenever a new order is placed in your e-commerce system.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the Telegram chat where the message will be sent. |
| Message Text | The content text of the message to be sent. |
| Reply to messageId | (Optional) The identifier of an existing message in the chat to which this message replies. |
Output
The node outputs a JSON array containing the response from the Telegram API after sending the message. This typically includes details about the sent message such as message ID, chat information, timestamps, and message content metadata.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the Telegram service.
- The node depends on an internal connection manager that handles Telegram client sessions.
- Proper login/authentication must be established before sending messages; otherwise, errors related to unauthorized access or closed sessions may occur.
- The node uses Telegram's TDLib-based API via an internal client.
Troubleshooting
Error: "Session was closed or terminated. Please login again"
This indicates the Telegram client session has expired or been closed. To resolve, re-authenticate using the login flow provided by the node (e.g., via the ChatTrigger node).Error: "Please login"
Means the node attempted to perform actions without a valid logged-in session. Ensure the login process is completed successfully before sending messages.Invalid Chat ID or Message ID
If the chat or reply-to message identifiers are incorrect or do not exist, the Telegram API will return errors. Verify these IDs carefully.Empty Message Text
Sending an empty message text may cause failure. Always provide non-empty text content.
Links and References
- Telegram TDLib Documentation
- Telepilot Login Guide (for authentication setup)
- Telegram Bot API Overview (general Telegram messaging concepts)