bale_send_file
Send a local file from allowed directories to a Bale chat as a document, photo, video, audio, voice, or GIF, with an optional caption.
Instructions
Send a local file (absolute path inside BALE_SEND_DIRS) as a document, photo, video, audio, voice or gif, with an optional caption. Acts on the user's real account: confirm with the user first unless they already asked for exactly this.
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_id": "<chat_id>",
"path": "<path>"
},
"name": "bale_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Default: photo for images, otherwise document. | |
| path | Yes | Absolute path. | |
| caption | No | ||
| chat_id | Yes | Chat id from bale_list_chats (user, group or channel id). | |
| chat_type | No | Chat type. Optional if the chat appeared in bale_list_chats before. |