Send photo
The Telegram Bot API Send Photo tool enables users to send photos directly to their Telegram Desktop chats or channels efficiently and with rich options. Designed for seamless integration, it supports various file inputs and customization features to enhance messaging capabilities.
Features
- Send photos to any Telegram chat using chat IDs or public usernames.
- Support for multiple photo input types including file IDs, HTTP URLs, and local file paths.
- Ability to add captions with customizable formatting options such as Markdown and HTML.
- Option to send messages silently by disabling notifications for recipients.
- Support for advanced interface elements like inline keyboards, custom reply keyboards, and reply message referencing.
Benefits
- Enhances user engagement by delivering rich media content directly to Telegram chats.
- Simplifies photo sharing automation within Telegram workflows, saving time and effort.
- Offers flexibility in message formatting to make content more attractive and readable.
- Improves user experience with silent message delivery options when needed.
- Enables interactive conversations with support for customizable reply markups and buttons.
Description
Sends a photo to your Telegram Desktop application. See the docs for more information
Parameters
9 parameters
| Name | Type | Description |
|---|---|---|
| chatIdrequired | string | Enter the unique identifier for the target chat (e.g. |
| caption | string | Enter the photo caption. |
| filename | string | Enter a filename. |
| photorequired | string | File to send. Pass a file_id to send a file that exists on the Telegram servers, pass an HTTP URL for Telegram to get a file from the Internet, or pass the path to the file (e.g., |
| disable_notification | boolean | Choose if to send the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound. |
| parse_mode | enum | Select MarkdownV2-style, HTML-style, or Markdown-style of the text if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. |
| reply_to_message_id | string | Enter the ID of the original message. |
| reply_markup | string | Enter additional interface options that are a JSON-serialized object including an inline keyboard, a custom reply keyboard, instructions to remove the reply keyboard or instructions to force a reply from the user, e.g. |
| contentType | enum | Select or enter the MIME type of data. |