Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node operation forwards messages from one Telegram chat to another. It is useful for automating message forwarding tasks within Telegram, such as duplicating important messages to different chats or channels. For example, a user can forward selected messages from a group chat to a private chat or another group automatically.

Use Case Examples

  1. Forward messages with specific IDs from one chat to another chat by specifying the source chat ID, destination chat ID, and the message IDs to forward.
  2. Use the message thread ID to forward messages as replies within a specific thread.

Properties

Name Meaning
Chat ID ID of the chat to which messages will be forwarded.
From Chat ID ID of the chat from which messages will be forwarded.
Message IDs Comma-separated identifiers of the messages to be forwarded.
Reply to threadID If not 0, specifies the message thread identifier in which the forwarded messages will be sent as replies.

Output

JSON

  • _ - Telegram API response object for the forwarded messages operation.

Dependencies

  • Requires an API key credential for Telegram (telePilotApi) to authenticate and interact with the Telegram API.

Troubleshooting

  • Ensure the Telegram API credentials are valid and the session is logged in; otherwise, the node will throw login-related errors.
  • Message IDs must be valid and belong to the source chat; invalid IDs may cause errors.
  • The chat IDs must be correct and accessible by the authenticated Telegram account.
  • If forwarding to a message thread, ensure the thread ID exists in the destination chat.

Links

Discussion