edit_inline_caption()#

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.

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

Returns:

bool – On success, True is returned.

Example

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