send_document
Send a document to a Telegram chat using a URL, file_id, or local file path. Optionally specify chat ID or send to the default log group.
Instructions
Send a file/document to a Telegram chat. Can send from URL, file_id or local file path. If chat_id is omitted, sends to the default log group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Document caption (up to 1024 chars) | |
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| document | Yes | Document URL, file_id or absolute local file path | |
| parse_mode | No | Caption formatting mode | |
| reply_markup | No | JSON string with reply markup | |
| protect_content | No | Protect message from forwarding/saving | |
| caption_entities | No | JSON array of MessageEntity objects (alternative to parse_mode) | |
| reply_parameters | No | JSON object with ReplyParameters (e.g. {"message_id": 123}) | |
| message_thread_id | No | Topic/thread ID for supergroups with topics enabled | |
| disable_notification | No | Send silently without notification | |
| disable_content_type_detection | No | Disable automatic content type detection for uploaded files |