Upload and Send Document or File
send_fileSend local files to Telegram chats by specifying a file path within allowed roots and a target chat identifier. Add captions or topic IDs to provide context and direct delivery.
Instructions
Upload and send a local document or file to a chat. File path must resolve within configured MCP allowed roots. Requires TELEGRAM_SEND_ENABLED=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| caption | No | Optional caption text describing the media file (Markdown or plain text). | |
| chat_id | Yes | Target Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number. | |
| topic_id | No | Forum topic identifier (thread ID) in a supergroup where forum topics are enabled. | |
| file_path | Yes | Local filesystem path to the file to upload or send. Must resolve within configured MCP allowed roots. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |