tg_translate
Translate any text or Telegram messages into a target language with Telegram's native translator. Set to_lang, then optionally provide text or select chat and up to 20 message IDs.
Instructions
Translate messages (or any text) with Telegram's own translator.
Args: to_lang: target language code, e.g. "ru", "en", "de". chat: chat the messages live in. message_ids: which messages to translate (max 20). text: translate this text instead of messages.
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": {
"to_lang": "<to_lang>"
},
"name": "tg_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | ||
| text | No | ||
| to_lang | Yes | ||
| message_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |