telegram_send_document
Send any file (PDF, ZIP, code) to a Telegram chat using a local path, URL, or file_id. Optionally add a formatted caption.
Instructions
Send any file (document) to a Telegram chat.
Use this for PDFs, ZIPs, code files, or any file type that doesn't fit photo/video/audio. Accepts a local path, URL, or Telegram file_id.
Args: params (SendDocumentInput): chat_id, document source, optional caption.
Returns: str: JSON with the sent Message object or an error description.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |