send_file
Send a local file to any Telegram chat with an optional caption using your own user account.
Instructions
Send a local file (image/document) to a chat as the logged-in user.
This is a real, irreversible send, visible to the chat's members, and cannot be recalled via this API — confirm the chat and file before calling.
Args: chat: Chat id/@username/title. file_path: Absolute path to an existing local file. caption: Optional caption text.
Returns {"sent": True, "message_id": }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| caption | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||