Identity Change

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.