Message Fields#
- class pywa.types.others.Reaction#
Represents a reaction to a message.
- class pywa.types.others.Location#
Represents a location.
- class pywa.types.others.Contact#
Represents a contact.
- Variables:
name (Name) β The name of the contact.
birthday (str | None) β The birthday of the contact (in
YYYY-MM-DDformat, optional).phones (Iterable[Phone]) β The phone numbers of the contact.
emails (Iterable[Email]) β The email addresses of the contact.
urls (Iterable[Url]) β The URLs of the contact.
addresses (Iterable[Address]) β The addresses of the contact.
org (Org | None) β The organization of the contact (optional).
- class pywa.types.others.Product#
Represents a product in an order.
- class pywa.types.others.Order#
Represents an order.
- Variables:
catalog_id (str) β The ID for the catalog the ordered item belongs to.
products (tuple[pywa.types.others.Product]) β The ordered products.
text (str | None) β Text message from the user sent along with the order (optional).
- Properties:
total_price: Total price of the order.
- class pywa.types.others.System#
Represents a system update (A customer has updated their phone number or profile information).
- Variables:
type (str) β The type of the system update (
customer_changed_numberorcustomer_identity_changed).body (str) β Describes the change to the customerβs identity or phone number.
identity (str) β Hash for the identity fetched from server.
wa_id (str) β The WhatsApp ID for the customer prior to the update.
new_wa_id (str | None) β New WhatsApp ID for the customer when their phone number is updated.
- class pywa.types.others.User#
Represents a WhatsApp user.
- class pywa.types.others.ReplyToMessage#
Represents a message that was replied to.
- class pywa.types.others.Metadata#
Represents the metadata of a message.
- class pywa.types.message_status.Conversation#
Represents a conversation.
- Variables:
id (str) β The ID of the conversation.
category (pywa.types.message_status.ConversationCategory) β The category of the conversation.
expiration (datetime.datetime | None) β The expiration date of the conversation (Optional, only for sent updates).
- class pywa.types.message_status.ConversationCategory#
Conversation category.
- Variables:
AUTHENTICATION β The conversation is related to authentication.
MARKETING β The conversation is related to marketing.
UTILITY β The conversation is related to utility.
SERVICE β The conversation is related to service.
REFERRAL_CONVERSION β The conversation is related to referral conversion.
UNKNOWN β The conversation category is unknown.