peyk.platforms.telegram.methods.edit_ephemeral_message_text

async peyk.platforms.telegram.methods.edit_ephemeral_message_text(self, chat_id: int | str, receiver_user_id: int | None = None, ephemeral_message_id: int | None = None, *, text: str | None = None, parse_mode: str | None = None, entities: List[MessageEntity] | None = None, rich_message: InputRichMessage | None = None, link_preview_options: LinkPreviewOptions | None = None, reply_markup: InlineKeyboardMarkup | None = None) bool

Use this method to edit an ephemeral text message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True is returned.

Parameters:
  • chat_id – Unique identifier for the target chat or username of the target supergroup in the format @username

  • receiver_user_id – Identifier of the user who received the message

  • ephemeral_message_id – Identifier of the ephemeral message to edit

  • text – New text of the message, 1-4096 characters after entity parsing

  • parse_mode – Mode for parsing entities in the message text. See formatting options for more details.

  • entities – A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode

  • rich_message – Value accepted by this operation.

  • link_preview_options – Link preview generation options for the message

  • reply_markup – A JSON-serialized object for an inline keyboard

Returns:

Result returned by Telegram on successful execution.

Return type:

bool