Actions33
- Chat Actions
- Custom Request Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
The node "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 plain text messages to a specified chat in Telegram.
This node is useful in automation workflows where you want to programmatically send messages to Telegram chats or groups, such as:
- Sending alerts or notifications from other systems.
- Automating customer support responses.
- Broadcasting updates to Telegram channels or groups.
For example, you can configure this node to send a message like "Server CPU usage is high" to a monitoring group chat whenever an alert triggers.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the Telegram chat where the message will be sent. |
| Message Text | The text content of the message to send. |
| Reply to threadID | (Optional) If not zero, specifies the message thread within the chat to which the message replies. |
| Reply to messageId | (Optional) Identifier of a specific message to reply to within the chat. |
Output
The output is a JSON array containing the response from the Telegram API after sending the message. The structure typically includes details about the sent message such as message ID, chat information, timestamps, and message content metadata.
No binary data output is produced by this operation.
Dependencies
- Requires an active Telegram API authentication credential (an API key credential with necessary permissions).
- The node internally manages Telegram client sessions and requires proper login via phone number and code before sending messages.
- No additional external services are needed beyond Telegram's API.
Troubleshooting
- Not logged in error: If the Telegram account is not logged in, the node throws an error prompting to log in using the ChatTrigger node with login commands. Ensure the login process is completed successfully before sending messages.
- Permission errors: Errors like "Cannot send messages to this chat" indicate insufficient permissions in the target chat. Verify that the bot or user has rights to post messages.
- File path or binary data issues: Although not relevant for Send Text Message, other message types require valid file paths or binary data. For text messages, ensure the Chat ID and message text are correctly provided.
- Session closed or terminated: If the session is closed unexpectedly, re-login is required.
- Invalid chat or message IDs: Providing incorrect chat or message identifiers may cause failures.
Links and References
- Telegram API Documentation
- Telepilot Login Guide (for setting up Telegram authentication)
- Telegram Bot FAQ