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, the Forward Messages operation under the Message resource allows users to forward one or more messages from one chat to another.

Typical use cases include:

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

For example, you could set up a workflow that listens for new messages in a support chat and forwards selected messages to a team chat for faster response coordination.

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 destination.

Output

The output is an array of JSON objects representing the result of the forward operation. Each object corresponds to the forwarded message(s) and contains details returned by the Telegram API about the forwarded messages, such as message metadata and status.

No binary data output is produced by this operation.

Dependencies

  • Requires a valid Telegram API authentication credential (an API key/token) configured in n8n.
  • Depends on the TelePilot Node Connection Manager to handle Telegram client sessions and API calls.
  • The node uses the TelePilot API internally to invoke Telegram methods.

Troubleshooting

  • Error: "Please login" or "Unauthorized"
    This indicates the Telegram session is not authenticated or has expired. Resolve by running the login flow using the related login operations or nodes, ensuring the Telegram account is properly connected.

  • Error: "Session was closed or terminated"
    The Telegram client session was closed unexpectedly. Re-authenticate and re-establish the session before retrying.

  • Invalid Chat ID or Message IDs
    Ensure that the chat IDs and message IDs provided are correct and accessible by the authenticated Telegram account.

  • Empty or malformed Message IDs
    The message_ids property must be a comma-separated string of valid message IDs without extra spaces or invalid characters.

  • Permission issues
    If forwarding fails due to permissions (e.g., the bot/account cannot write to the destination chat), verify that the account has appropriate rights.

Links and References

Discussion