Send a file
telegram_send_fileSend a local file to a Telegram chat as a document or auto-detected media, with an optional caption. Share files immediately from an agent.
Instructions
Send a local file as a document (forceDocument) or auto-detected media. Supports caption. Sends immediately.
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>",
"filePath": "<filePath>"
},
"name": "telegram_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| caption | No | ||
| replyTo | No | ||
| filePath | Yes | ||
| forceDocument | No |