Identity Change#
- class pywa.types.system.IdentityChange#
A message received when a user changes their profile information on WhatsApp.
- Variables:
id β The message ID.
metadata β The metadata of the message (to which phone number it was sent).
type (MessageType) β The type of the message (always
MessageType.SYSTEM).from_user β The user who changed their profile information.
timestamp β The timestamp when the message was arrived to WhatsApp servers (in UTC).
body (str) β The body of the system message (e.g., John changed their profile information).
identity (Identity) β The new identity of the user (see
Identity).
- class pywa.types.system.Identity#
Represents a userβs identity on WhatsApp.
- Variables:
acknowledged (bool) β State of acknowledgment.
created_timestamp (datetime.datetime) β The time when the WhatsApp Business Management API detected the customer may have changed their profile information.
hash (str) β The hash of the identity.