Get Telegram Media
tg_get_media[Not included in your plan — calling it returns a plan_required refusal; wa_get_plan's excluded_tools lists what your plan leaves out.] Download the attachment from a received Telegram message — image, video, audio or document. For a WhatsApp attachment use wa_get_media.
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": {
"message_id": "<message_id>"
},
"name": "tg_get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | the Telegram account that received the message, from wa_list_accounts; omit it when the workspace has only one Telegram account | |
| message_id | Yes | the message id whose attachment to fetch, from tg_list_messages (a Telegram message id of the form <chat>_<n>) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| size | No | the attachment size in bytes | |
| status | Yes | ok (media returned, inline or as a url) or refused | |
| refusal | No | ||
| media_url | No | a time-limited (1h) URL to GET a large attachment's bytes, present instead of media_base64 when the attachment is over the inline cap | |
| media_base64 | No | base64 of the attachment, present for a small attachment |