download_file
Download files from Telegram messages by providing chat and message IDs. Specify an optional output directory to save the file locally.
Instructions
Download a file from a message
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": {
"messageId": "<messageId>",
"chatId": "<chatId>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | The chat ID containing the message | |
| messageId | Yes | The message ID containing the file | |
| outputPath | No | Optional custom output directory path |