Send Telegram photo
send_photoSends a photo through a Telegram bot from an absolute local path or HTTP(S) URL to a specified chat, with an optional caption.
Instructions
Send a photo through the Telegram bot from an absolute local path (.jpg, .jpeg, .png, .webp, up to 10 MB) or an http(s) URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo | Yes | Absolute local file path or http(s) URL | |
| format | No | 'plain' sends text as is. 'html' uses Telegram HTML (<b>, <i>, <u>, <s>, <code>, <pre>, <a href>, <blockquote>); escape <, > and & in text as < > &. | plain |
| caption | No | Optional caption, up to 1024 characters | |
| chat_id | Yes | Destination chat: a numeric ID, or @channelname for a public channel. Never guess this; ask the user if it is unknown. |