telegram_send_document
Send any file (PDF, ZIP, code) to a Telegram chat using a local path, URL, or file_id. Optionally add a formatted caption.
Instructions
Send any file (document) to a Telegram chat.
Use this for PDFs, ZIPs, code files, or any file type that doesn't fit photo/video/audio. Accepts a local path, URL, or Telegram file_id.
Args: params (SendDocumentInput): chat_id, document source, optional caption.
Returns: str: JSON with the sent Message object or an error description.
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_send_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |