messages.EditMessage#

class pyrogram.raw.functions.messages.EditMessage#

Edit message

Note

This method may be invoked over a business connection »

Details:
  • Layer: 224

  • ID: 51E842E1

Parameters:
  • peer (InputPeer) – Where was the message sent

  • id (int 32-bit) – ID of the message to edit

  • no_webpage (bool, optional) – Disable webpage preview

  • invert_media (bool, optional) – If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

  • message (str, optional) – New message

  • media (InputMedia, optional) – New attached media

  • reply_markup (ReplyMarkup, optional) – Reply markup for inline keyboards

  • entities (List of MessageEntity, optional) – Message entities for styled text

  • schedule_date (int 32-bit, optional) – Scheduled message date for scheduled messages

  • schedule_repeat_period (int 32-bit, optional) – Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see here » for more info on repeating scheduled messages.

  • quick_reply_shortcut_id (int 32-bit, optional) – If specified, edits a quick reply shortcut message, instead ».

Returns:

Updates