send_file
Send local files to Telegram chats with options for captions, scheduling, or sending as documents, voice, or video notes.
Instructions
发送本地文件(图片/视频/文档均可)。
Args:
chat: 目标对话。
path: 本地文件绝对路径。
caption: 附带说明文字。
as_document: True 则强制作为文件发送,不压缩为图片/视频。
reply_to: 要回复的消息 ID。
as_voice: 作为语音消息发送(需要 ogg/opus 音频)。
as_video_note: 作为圆形视频消息发送(需要方形短视频)。
silent: 静默发送。
schedule_at: 定时发送,如 +30m / ISO8601 / Unix 时间戳。
parse_mode: caption 的解析方式(none / markdown / html)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| path | Yes | ||
| silent | No | ||
| caption | No | ||
| as_voice | No | ||
| reply_to | No | ||
| parse_mode | No | markdown | |
| as_document | No | ||
| schedule_at | No | ||
| as_video_note | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||