send_file
Send a local file to a Telegram chat as photo, video, document, audio, voice, or video note. Specify caption and parse mode for formatted messages.
Instructions
Отправить локальный файл (фото/видео/документ/аудио). caption — подпись (parse_mode: md|html|none). as_voice — как голосовое, as_video_note — как «кружок», force_document — как файл без предпросмотра. Для видео при наличии ffprobe проставляются размеры/длительность для нормального воспроизведения.
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>",
"path": "<path>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| path | Yes | ||
| caption | No | ||
| as_voice | No | ||
| parse_mode | No | md | |
| as_video_note | No | ||
| force_document | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||