send_media
Send or schedule photos, documents, voice notes, videos, stickers, or albums from the sandboxed outbox to a Telegram peer, with optional captions and AI attribution.
Instructions
Upload and send or schedule media from the sandboxed outbox directory (photo, document, voice, video_note, album) or an existing sticker. Appends an AI attribution signature by default; place [nosig] at the very end of the text to omit it.
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": {
"to": "<to>"
},
"name": "send_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination peer reference (canonical ID, `@username`, or `"me"`). | |
| caption | No | Optional media caption (optionally ending with `[nosig]` to omit AI signature). | |
| file_path | No | Media file path inside the sandboxed `outbox_dir` (for single-media modes). | |
| file_paths | No | Media file paths inside the sandboxed `outbox_dir` (2..=10 items for albums). | |
| media_mode | No | Media sending mode (`auto`, `photo`, `document`, `voice`, `video_note`, `sticker`, or `album`). | |
| parse_mode | No | Caption formatting mode (`markdown`, `plain`, or `html`; default `markdown`). | |
| duration_secs | No | Optional duration in seconds (for `voice` or `video_note`). | |
| schedule_date | No | Optional future Unix timestamp in seconds to schedule the media message. | |
| sticker_doc_id | No | Existing Telegram sticker document ID (for `sticker`). | |
| reply_to_message_id | No | Optional message ID to reply to. | |
| sticker_access_hash | No | Existing Telegram sticker document access hash (for `sticker`). | |
| sticker_file_reference_b64 | No | Base64-encoded Telegram sticker file reference (for `sticker`). |