Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

The node "Telegram CoPilot" integrates with the Telegram API to perform various Telegram-related actions programmatically. Specifically, for the Message resource and Forward Messages operation, it forwards one or more messages from a source chat to a target chat.

This node is useful in automation workflows where you want to replicate or share messages between different Telegram chats without manual intervention. For example, you could forward important alerts from a monitoring bot's chat to a team discussion group automatically.

Practical example:

  • Forward selected messages from a support chat to a management chat for review.
  • Automatically forward announcements from a channel to multiple group chats.

Properties

Name Meaning
Chat ID The identifier of the target chat where messages will be forwarded.
From Chat ID The identifier of the source chat from which messages will be forwarded.
Message IDs Comma-separated list of message identifiers to forward from the source chat to the target.

Output

The output is a JSON array containing the result(s) of the forwarding operation. Each element corresponds to the response from the Telegram API for the forwarded messages, typically including metadata about the forwarded messages such as their new message IDs, timestamps, and status.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Telegram API.
  • Depends on the TelePilotNodeConnectionManager to manage Telegram client sessions and invoke Telegram API methods.
  • Requires proper login/authentication via phone number and code before performing operations.
  • The node uses the Telegram TDLib (Telegram Database Library) under the hood for communication.

Troubleshooting

  • Session Not Logged In: If the Telegram session is not logged in or has expired, errors like "Please login" or "Session was closed or terminated" may occur. Resolve by re-authenticating using the login commands or node.
  • Unauthorized Errors: These indicate invalid or expired credentials; re-login is required.
  • Invalid Chat or Message IDs: Ensure that the chat IDs and message IDs provided exist and are accessible by the authenticated user.
  • Empty or Malformed Message IDs: The message_ids property must be a comma-separated string of valid message IDs; empty or malformed input will cause failure.
  • Network Issues: Connectivity problems can cause failures invoking Telegram API methods.

Links and References

Discussion