edit_inline_caption()

async Client.edit_inline_caption()

Edit the caption of inline media messages.

Usable by Users Bots
Parameters:
  • inline_message_id (str) – Identifier of the inline message.

  • caption (str) – New caption of the media message.

  • parse_mode (ParseMode, optional) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes together.

  • caption_entities (List of MessageEntity, optional) – List of special entities that appear in the new caption, which can be specified instead of parse_mode.

  • show_caption_above_media (bool, optional) – Pass True, if the caption must be shown above the message media.

  • reply_markup (InlineKeyboardMarkup, optional) – An InlineKeyboardMarkup object.

  • business_connection_id (str, optional) – Unique identifier of the business connection.

Returns:

bool – On success, True is returned.

Example

# Bots only
await app.edit_inline_caption(inline_message_id, "new media caption")