Actions17
Copy Message
AI-generatedSummary
Copy a Telegram message to another chat.
Inputs
- botToken — Bot token (usually provided via input; can also be fixed in credentials).
- chatId (required) — Destination chat ID where the message will be copied.
- fromChatId (required) — ID of the source chat containing the original message.
- messageId (required) — Message ID of the message to copy within the source chat.
- replyToMessageId — Optional ID of a message to reply to in the destination chat.
- useRateLimit — Enable Redis rate limiting to avoid 429 errors (requires Redis credentials).
Output shape
Telegram Message JSON on success; error details on failure
Returns the copied message object when successful; if the bot is blocked the result appears on the second output with error_code 403; other errors are routed to the error output.
Examples
Example 1: Copy a message from chat 12345 to chat 67890 using its message ID.
operation: copy; fromChatId: 12345; messageId: 42; chatId: 67890; botToken from input
Example 2: Copy a message with optional reply-to and rate limiting enabled.
operation: copy; fromChatId: {{$json.source_chat}}; messageId: {{$json.message_id}}; replyToMessageId: {{$json.reply_id}}; useRateLimit: true