telegram_get_file_info
Retrieve file metadata, file_path, file_size, and a direct download URL for files stored on Telegram servers by providing the file ID.
Instructions
Get metadata and download path for a file stored on Telegram servers.
Returns the file_path needed to construct the download URL: https://api.telegram.org/file/bot/<file_path>
Args: params (GetFileInput): file_id of the Telegram file.
Returns: str: JSON with File object including file_path, file_size, and download_url.
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": {
"params": "<params>"
},
"name": "telegram_get_file_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |