Message Status#
- class pywa.types.message_status.MessageStatus#
Represents the status of a message.
- Variables:
id (str) – The ID of the message that the status is for.
metadata (Metadata) – The metadata of the message (to which phone number it was sent).
status (MessageStatusType) – The status of the message.
timestamp (datetime) – The timestamp when the status was updated.
from_user (User) – The user who the message was sent to.
conversation (Conversation | None) – The conversation the given status notification belongs to (Optional).
pricing_model (str) – Type of pricing model used by the business. Current supported value is CBP.
error (WhatsAppError | None) – The error that occurred (if status is
failed).
- class pywa.types.message_status.MessageStatusType#
Message status type.
- Variables:
SENT – The message was sent.
DELIVERED – The message was delivered.
READ – The message was read.
FAILED – The message failed to send (you can access the error with
.errorattribute).