editEphemeralMessageCaption¶
Returns: bool
- class aiogram.methods.edit_ephemeral_message_caption.EditEphemeralMessageCaption(*, chat_id: int | str, receiver_user_id: int, ephemeral_message_id: int, caption: str | None = None, parse_mode: str | None = None, caption_entities: list[MessageEntity] | None = None, reply_markup: InlineKeyboardMarkup | None = None, **extra_data: Any)[source]¶
Use this method to edit the caption of an ephemeral message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success,
Trueis returned.Source: https://core.telegram.org/bots/api#editephemeralmessagecaption
- chat_id: int | str¶
Unique identifier for the target chat or username of the target supergroup in the format
@username
- receiver_user_id: int¶
Identifier of the user who received the message
- ephemeral_message_id: int¶
Identifier of the ephemeral message to edit
- caption: str | None¶
New caption of the message, 0-1024 characters after entities parsing
- parse_mode: str | None¶
Mode for parsing entities in the message caption. See formatting options for more details
- caption_entities: list[MessageEntity] | None¶
A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
- reply_markup: InlineKeyboardMarkup | None¶
A JSON-serialized object for an inline keyboard
Usage¶
As bot method¶
result: bool = await bot.edit_ephemeral_message_caption(...)
Method as object¶
Imports:
from aiogram.methods.edit_ephemeral_message_caption import EditEphemeralMessageCaptionalias:
from aiogram.methods import EditEphemeralMessageCaption
With specific bot¶
result: bool = await bot(EditEphemeralMessageCaption(...))
As reply into Webhook in handler¶
return EditEphemeralMessageCaption(...)