send_file
Send a local file to any Telegram chat with an optional caption using your own user account.
Instructions
Send a local file (image/document) to a chat as the logged-in user.
This is a real, irreversible send, visible to the chat's members, and cannot be recalled via this API — confirm the chat and file before calling.
Args: chat: Chat id/@username/title. file_path: Absolute path to an existing local file. caption: Optional caption text.
Returns {"sent": True, "message_id": }.
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>",
"file_path": "<file_path>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| caption | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||