send_photo
Send a photo to a Telegram chat from a URL, file_id, or local file path. Supports captions, formatting, reply markup, and spoiler animations.
Instructions
Send a photo to a Telegram chat. Can send from URL or local file path. If chat_id is omitted, sends to the default log group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo | Yes | Photo URL, file_id or absolute local file path | |
| caption | No | Photo caption (up to 1024 chars) | |
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| parse_mode | No | Caption formatting mode | |
| has_spoiler | No | Cover photo with spoiler animation | |
| reply_markup | No | JSON string with reply markup | |
| protect_content | No | Protect message from forwarding/saving | |
| caption_entities | No | JSON array of MessageEntity objects (alternative to parse_mode) | |
| reply_parameters | No | JSON object with ReplyParameters (e.g. {"message_id": 123}) | |
| message_thread_id | No | Topic/thread ID for supergroups with topics enabled | |
| disable_notification | No | Send silently without notification | |
| show_caption_above_media | No | Show caption above media |