Send Telegram Document
telegram_send_documentSend a file to a Telegram chat using a public HTTPS URL, with an optional caption. Supports PDF, CSV, ZIP, and other formats up to 20 MB.
Instructions
Send a file (PDF, CSV, ZIP, etc.) to a Telegram chat by URL, with an optional caption.
Args:
chat_id (string | number): Target chat
document (string): Public HTTPS URL of the file. Telegram fetches it server-side.
caption (string, optional): Caption text, up to 1024 characters
Returns: Confirmation with the new message_id.
Error Handling:
"wrong file identifier/HTTP URL specified" -> the URL is not publicly reachable.
Telegram limit for files sent by URL is 20 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Optional caption shown below the media, up to 1024 characters | |
| chat_id | Yes | Target chat. Numeric chat ID (e.g. 123456789) or '@channel_username' for public channels. | |
| document | Yes | Publicly accessible HTTPS URL of the file to send (e.g. 'https://example.com/report.pdf') |