download_media
Download media files attached to a specific chat message. Provide chat identifier and message ID to save the media locally.
Instructions
Download the media attached to one message. Returns the saved path.
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": {
"chat": "<chat>",
"message_id": "<message_id>"
},
"name": "download_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat identifier from list_chats or search_chats: a numeric chat_id, a @username, or "me" for Saved Messages. Do not invent one. | |
| dest_dir | No | Defaults to /root/.telegram-mcp/downloads | |
| message_id | Yes |