send_document
Sends a general file (document) to a Telegram chat by chat ID or @username, using a file ID, HTTP URL, or absolute path.
Instructions
Send a general file (document).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Caption (0-1024 visible chars; HTML tags/URLs excluded) | |
| chat_id | Yes | Chat ID or @username | |
| document | Yes | File ID, HTTP URL, or absolute file path | |
| 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 | |
| receiver_user_id | No | User ID | |
| reply_parameters | No | ReplyParameters object | |
| callback_query_id | No | ||
| message_effect_id | No | ||
| message_thread_id | No | ||
| allow_paid_broadcast | No | ||
| disable_notification | No | ||
| business_connection_id | No | ||
| direct_messages_topic_id | No | ||
| suggested_post_parameters | No | SuggestedPostParameters object (price, send_date) — direct messages chats only | |
| disable_content_type_detection | No |