Outgoing Deleted Message

Outgoing Deleted Message#

The OutgoingDeletedMessage update is triggered when a message sent from the business is deleted. It contains information about the deleted message, including its content and metadata.

class pywa.types.OutgoingDeletedMessage#

A deleted message that is sent by the business (Also known as Echo message).

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

  • original_message_id – The ID of the message that was deleted.

  • type – The type of the update (always MessageType.REVOKE).

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

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

  • to_user – The recipient of the message.

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