Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node integrates with Telegram via the TelePilot API, enabling automation of various Telegram messaging and chat management tasks. Specifically, for the Message resource and Send Text Message operation, it allows sending plain text messages to a specified Telegram chat.

Common scenarios where this node is beneficial include:

  • Automating notifications or alerts by sending messages to Telegram groups or individual chats.
  • Integrating Telegram messaging into workflows, such as sending updates after a process completes.
  • Replying programmatically to specific messages in a chat thread.

Example use case: Automatically send a status update message to a Telegram group chat whenever a new order is received in an 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 of the text message to send.
Reply to messageId (Optional) The ID of a message in the chat to which this message should reply.

Output

The node outputs a JSON array containing the response from the Telegram API for the sent message. This typically includes details about the sent message such as its 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 and associated login).
  • Depends on the TelePilot Node Connection Manager to handle Telegram client sessions.
  • Users must ensure that the Telegram account is logged in and authorized; otherwise, the node will throw errors prompting re-login.
  • No additional external services are required beyond Telegram's API.

Troubleshooting

  • Session Not Logged In: If the Telegram session is not active or has been closed, the node will throw errors indicating the need to log in again. Use the login flow provided by the node (via the "login" resource and operations) to authenticate.
  • Unauthorized Errors: These indicate invalid or expired credentials. Re-authenticate using the login commands.
  • Invalid Chat ID or Message ID: Ensure that the Chat ID and optional Reply to messageId are correct and correspond to existing chats/messages.
  • Empty Message Text: Sending an empty message text may cause errors or no action; always provide valid text.
  • Network Issues: Connectivity problems can cause invocation failures; verify network access to Telegram servers.

Links and References

Discussion