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. THIS IS THE OLD WA ID!
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) – The new WhatsApp ID of the user.
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.