Send Telegram Document
send_telegram_documentSend a document or file to a Telegram chat via bot, using local Windows paths or HTTP URLs. Supports captions, custom filenames, and formatting.
Instructions
Send a document/file via Telegram bot (supports local Windows paths and HTTP URLs)
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": {
"document": "<document>"
},
"name": "send_telegram_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | No | Optional override for target Telegram Chat ID | |
| caption | No | Document caption with formatting support | |
| document | Yes | Local file path (e.g. C:/path/to/file.txt) or HTTP(S) URL | |
| filename | No | Custom filename for the document | |
| parseMode | No | Caption formatting mode (default: HTML) | HTML |