send_file
Send files to Telegram chats with automatic type detection. Supports captions, formatting, voice/video notes, self-destruct timers, custom filenames, and force-document mode.
Instructions
Отправить файл. Telethon сам определит тип (фото/видео/документ).
Args: file_path: путь к локальному файлу. caption: подпись (поддерживает форматирование, см. parse_mode). parse_mode: 'markdown', 'html' или 'none'. force_document: True — отправить как документ, не сжимать. voice_note: True — отправить голосовое (требует .ogg/.mp3). video_note: True — отправить video-кружок. ttl_seconds: self-destruct таймер (только для PM, 1-60 сек). clear_draft: очистить draft чата после отправки. supports_streaming: для видео — отметить как streamable. custom_filename: заменить имя файла при отправке.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| silent | No | ||
| caption | No | ||
| reply_to | No | ||
| file_path | Yes | ||
| parse_mode | No | markdown | |
| video_note | No | ||
| voice_note | No | ||
| clear_draft | No | ||
| ttl_seconds | No | ||
| force_document | No | ||
| custom_filename | No | ||
| supports_streaming | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||