Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node integrates with Telegram via the TelePilot API, enabling automation of various Telegram actions. Specifically, the "Forward Messages" operation under the "Message" resource allows users to forward one or more messages from one chat to another within Telegram.

Common scenarios for this node include:

  • Automatically forwarding important messages from a monitored chat to a different chat or group.
  • Creating workflows that redistribute content across multiple Telegram channels or chats.
  • Archiving or backing up messages by forwarding them to a dedicated chat.

For example, you could set up an automation that forwards all messages containing certain keywords from a customer support chat to a management chat for review.

Properties

Name Meaning
Chat ID The identifier of the destination 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 forward operation. Each element corresponds to the response from the Telegram API for each forwarded message, typically including metadata about the forwarded message such as its new message ID and status.

No binary data output is produced by this operation.

Dependencies

  • Requires an active Telegram API authentication token (API key credential) configured in n8n credentials.
  • Depends on the TelePilot Node Connection Manager to handle Telegram client sessions.
  • Requires the user to be logged in to Telegram via the node's login mechanism before performing operations.

Troubleshooting

  • Session Not Logged In: If the Telegram session is not logged in or has expired, the node will throw errors indicating the need to log in again. Use the node's login operation to authenticate.
  • Invalid Chat or Message IDs: Providing incorrect or non-existent chat or message IDs may cause the operation to fail. Verify IDs are correct and accessible by the authenticated account.
  • Rate Limits or API Errors: Telegram may impose rate limits or restrictions; if errors occur, consider adding delays or checking Telegram API status.
  • Comma-Separated Message IDs Format: Ensure the Message IDs property is a properly formatted comma-separated string without extra spaces or invalid characters.

Links and References

Discussion