Deleted Message#
The DeletedMessage type is used to represent incoming revoked (deleted) messages from WhatsApp user.
- class pywa.types.DeletedMessage#
A message that has been deleted (revoked) by a user.
- Variables:
id – The ID of the revoke event (not the original message ID).
original_message_id (str) – The ID of the message that was deleted.
type (MessageType) – The type of the update (always
MessageType.REVOKE).chat (Chat) – The chat where the message was deleted (private or group).
metadata – The metadata of the message (to which phone number it was sent).
from_user – The user who deleted the message.
timestamp – The timestamp when the message was deleted (in UTC).