send_document
Send a file or document to any Telegram chat using a URL or file_id. Optionally include a caption with formatting.
Instructions
Send a file/document to a Telegram chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Optional caption (up to 1024 characters). | |
| chat_id | Yes | Target chat id or @username. | |
| document | Yes | HTTP(S) URL of the file or a Telegram file_id. | |
| parse_mode | No | Formatting for the caption ("HTML", "Markdown", etc.). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||