Edited Message

Contents

Edited Message#

The EditedMessage type is used to represent incoming edited messages from WhatsApp user.

class pywa.types.EditedMessage#

A message that has been edited.

Variables:
  • id – The ID of the edit event (not the original message ID).

  • original_message_id (str) – The original message ID before the edit.

  • type (MessageType) – The type of the edit (See MessageType).

  • chat (Chat) – The chat where the message was edited (private or group).

  • metadata – The metadata of the message (to which phone number it was sent).

  • from_user – The user who edit the message.

  • timestamp – The timestamp when the message was edited (in UTC).

  • message (Message) – The updated version of the message after the edit.