ChosenInlineResult.edit_message_caption()#

ChosenInlineResult.edit_message_caption()#

Edit the caption of media messages attached to sent InlineQueryResult messages.

Bound method edit_message_caption of ChosenInlineResult.

Parameters:
  • caption (str) – New caption of the 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) – List of special entities that appear in message text, which can be specified instead of parse_mode.

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

Returns:

bool – On success, True is returned.

Raises:

RPCError – In case of a Telegram RPC error.