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.caption_entities (List of
MessageEntity
) – List of special entities that appear in the 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. Supported only for animation, photo and video messages.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")