download_media
Download media files from a Telegram message by specifying chat and message ID, saving to a chosen directory and returning the file path.
Instructions
Download the media attached to a message; returns the saved file 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 | ||
| directory | No | ~/Downloads | |
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||