Phone Number Change#
- class pywa.types.system.PhoneNumberChange#
A update received when a user changes their phone number 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).sys_type (SystemType) β The type of the system message (always
SystemType.USER_CHANGED_NUMBER).from_user β The user who changed their phone number. The user will contain the old phone number in the
wa_idfield.timestamp β The timestamp when the message was arrived to WhatsApp servers (in UTC).
old_wa_id (str) β The old WhatsApp ID of the user.
new_wa_id (str | None) β The new WhatsApp ID of the user.
new_parent_id (str | None) β he userβs new parent BSUID, if you have enabled parent BSUIDs
body (str) β The body of the system message (e.g., John changed their phone number).
- class pywa.types.system.SystemType#
The type of the system message.
- Variables:
USER_CHANGED_NUMBER β A user changed their phone number.
CUSTOMER_IDENTITY_CHANGED β A user changed their profile information.