Edit media message
The Telegram Bot API Edit Media Message tool allows users to seamlessly modify photo or video messages within Telegram chats. It provides flexible options to update media content, captions, and interactive elements, enhancing communication dynamics.
Features
- Edit existing photo or video messages in Telegram chats with ease.
- Supports updating media files via file ID, URL, or local file paths.
- Allows editing captions with multiple parse modes: Markdown, MarkdownV2, and HTML.
- Enables inclusion of interactive reply markups such as inline keyboards or custom reply keyboards.
- Compatible with various chat types using unique chat identifiers or usernames.
Benefits
- Simplifies media content management without needing to resend messages.
- Enhances user engagement with editable captions and interactive keyboards.
- Integrates smoothly with Telegram bots for dynamic content updates.
- Saves time by modifying existing messages instead of deleting and resending.
- Boosts communication efficiency within Telegram groups, channels, and supergroups.
Description
Edits photo or video messages. See the docs for more information
Parameters
8 parameters
| Name | Type | Description |
|---|---|---|
| chatIdrequired | string | Enter the unique identifier for the target chat (e.g. |
| messageIdrequired | string | Enter the message ID. |
| typerequired | enum | Select the media type. |
| caption | string | Enter the caption. |
| filename | string | Enter a filename. |
| mediarequired | 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., |
| 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_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. |