POST /editMessageCaption
Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
Servers
- https://api.telegram.org/bot{token}
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
message_id |
Integer | No |
Required if inline_message_id is not specified. Identifier of the message to edit |
inline_message_id |
String | No |
Required if chat_id and message_id are not specified. Identifier of the inline message |
reply_markup |
Object | No |
This object represents an inline keyboard that appears right next to the message it belongs to. |
reply_markup.inline_keyboard[] |
Array | Yes |
Array of button rows, each represented by an Array of InlineKeyboardButton objects |
caption |
String | No |
New caption of the message, 0-1024 characters after entities parsing |
chat_id |
No |
Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format |
|
parse_mode |
String | No |
Mode for parsing entities in the message caption. See formatting options for more details. |
caption_entities[] |
Array | No |
List of special entities that appear in the caption, which can be specified instead of parse_mode |
caption_entities[].length |
Integer | Yes |
Length of the entity in UTF-16 code units |
caption_entities[].url |
String | No |
Optional. For “text_link” only, url that will be opened after user taps on the text |
caption_entities[].user |
Object | No |
This object represents a Telegram user or bot. |
caption_entities[].user.id |
Integer | Yes |
Unique identifier for this user or bot |
caption_entities[].user.username |
String | No |
Optional. User's or bot's username |
caption_entities[].user.can_read_all_group_messages |
Boolean | No |
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe. |
caption_entities[].user.last_name |
String | No |
Optional. User's or bot's last name |
caption_entities[].user.can_join_groups |
Boolean | No |
Optional. True, if the bot can be invited to groups. Returned only in getMe. |
caption_entities[].user.first_name |
String | Yes |
User's or bot's first name |
caption_entities[].user.is_bot |
Boolean | Yes |
True, if this user is a bot |
caption_entities[].user.language_code |
String | No |
Optional. IETF language tag of the user's language |
caption_entities[].user.supports_inline_queries |
Boolean | No |
Optional. True, if the bot supports inline queries. Returned only in getMe. |
caption_entities[].type |
String | Yes |
Type of the entity. Can be “mention” ( Possible values:
|
caption_entities[].language |
String | No |
Optional. For “pre” only, the programming language of the entity text |
caption_entities[].offset |
Integer | Yes |
Offset in UTF-16 code units to the start of the entity |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.