Forward message(s)
forward_messageForward one or more Telegram messages between chats only when both are in the same endpoint allow-list, preventing cross-group forwarding.
Instructions
Forward one or more messages from one in-scope chat to another. BOTH the source and destination chats must be inside this endpoint’s allow-list (the same virtual group); cross-group forwarding is not possible. Subject to the per-endpoint anti-ban quota and, when enabled, human confirmation. The batch of message ids is capped per request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fromPeer": "<fromPeer>",
"toPeer": "<toPeer>",
"messageIds": "<messageIds>"
},
"name": "forward_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toPeer | Yes | Destination chat to forward TO. Must be inside this endpoint’s allow-list (same virtual group as the source); send access is required. | |
| fromPeer | Yes | Source chat to forward FROM. Must be inside this endpoint’s allow-list (same virtual group as the destination); read access is required. | |
| messageIds | Yes | Between 1 and 100 message ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_chat_id | Yes | Destination chat forwarded to. | |
| from_chat_id | Yes | Source chat forwarded from. | |
| forwarded_message_ids | Yes | Ids of the newly created messages in the destination chat. |