Send a file
send_fileSend files to a Telegram chat using local paths or URLs. Supports multiple files as an album with options for captions, silent delivery, and voice or photo formatting.
Instructions
Upload and send one or more files. Each path may be an absolute local path or an https:// URL. Passing multiple paths sends them as an album.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Local path, URL, or array of those for an album | |
| peer | Yes | ||
| silent | No | ||
| asPhoto | No | ||
| asVoice | No | ||
| caption | No | ||
| replyTo | No | ||
| topMsgId | No | Forum topic root message id | |
| accountId | No |