telegram_download_media
Download media from a Telegram message by providing the chat identifier, message ID, and destination filename. Saves the file to the download root and returns its path.
Instructions
Download media/document from a Telegram message into the MCP download root (MCP_DOWNLOAD_ROOT, default /data/downloads). 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>",
"filename": "<filename>"
},
"name": "telegram_download_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat identifier (@username, +phone, or numeric ID) | |
| filename | Yes | Destination filename relative to the MCP download root | |
| message_id | Yes | Message id holding the media |