Actions30
- Chat Actions
- Custom Request Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
This node enables sending text messages and other Telegram-related operations through the Telegram CoPilot API. Specifically, for the Message resource with the Send Text Message operation, it sends a plain text message to a specified chat in Telegram.
Common scenarios where this node is useful include:
- Automating notifications or alerts by sending messages to Telegram chats.
- Integrating Telegram messaging into workflows, such as sending updates from other systems.
- Replying to specific messages in a chat thread programmatically.
Example: Sending a "Hello World" message to a group chat identified by its chat ID.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the Telegram chat where the message will be sent. |
| Message Text | The content of the text message to send. |
| Reply to messageId | (Optional) The ID of an existing message in the chat to which this message will reply. |
Output
The output JSON contains 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.
If the message is successfully sent, the output will have the full message object returned by Telegram.
Dependencies
- Requires an API key credential for authenticating with the Telegram CoPilot service.
- The node depends on the TelePilotNodeConnectionManager class to manage Telegram client sessions.
- The Telegram client must be logged in and authorized before sending messages.
- No additional environment variables are explicitly required beyond the API credentials.
Troubleshooting
- Error: Please login — Indicates that the Telegram client session is not authenticated. Use the login flow with the ChatTrigger node and the loginWithPhoneNumber action to authenticate.
- File path errors (for other media types) — Ensure file paths provided exist and are accessible.
- Permission errors — If the bot or user does not have permission to send messages to the chat, the API will return an error.
- Session closed or terminated — The client session may have expired or been closed; re-login is necessary.
- When using the reply_to_msg_id property, ensure the referenced message ID exists in the target chat.
Links and References
- Telegram CoPilot Login Guide
- Telegram Bot API Documentation (for general understanding of message sending)
This summary focuses on the Message resource and Send Text Message operation as requested.