send_document
Send a general file to a Telegram chat using a file ID, HTTP URL, or absolute path. Set caption, parse mode, and reply options.
Instructions
Send a general file (document).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Caption (0-1024 chars) | |
| chat_id | Yes | Chat ID or @username | |
| document | Yes | File ID, HTTP URL, or absolute file path | |
| effect_id | No | ||
| thumbnail | No | File ID, HTTP URL, or absolute file path | |
| parse_mode | No | Formatting mode | |
| reply_markup | No | InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, or ForceReply | |
| protect_content | No | ||
| caption_entities | No | Array of MessageEntity objects | |
| reply_parameters | No | ReplyParameters object | |
| message_thread_id | No | ||
| allow_paid_broadcast | No | ||
| disable_notification | No | ||
| business_connection_id | No | ||
| disable_content_type_detection | No |