edit_inline_caption()¶
Edit the caption of inline media messages.
Usable by Users Bots
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.invert_media (
bool
, optional) – True, If the media position is inverted. only animation, photo, video, and webpage preview messages.
bool
– On success, True is returned.
Example
# Bots only await app.edit_inline_caption(inline_message_id, "new media caption")