Sending Messages Errors#
- class pywa.errors.SendMessageError#
Bases:
WhatsAppErrorBase exception for all message errors.
- class pywa.errors.MessageUndeliverable#
Bases:
SendMessageErrorUnable to deliver message. Reasons can include:
The recipient phone number is not a WhatsApp phone number.
Recipient has not accepted our new Terms of Service and Privacy Policy.
- Recipient using an old WhatsApp version; must use the following WhatsApp version or greater:
Android: 2.21.15.15 SMBA: 2.21.15.15 iOS: 2.21.170.4 SMBI: 2.21.170.4 KaiOS: 2.2130.10 Web: 2.2132.6
- class pywa.errors.ReEngagementMessage#
Bases:
SendMessageErrorMore than 24 hours have passed since the recipient last replied to the sender number.
- class pywa.errors.UnsupportedMessageType#
Bases:
SendMessageErrorThe message type is not supported.
- class pywa.errors.RecipientNotInAllowedList#
Bases:
SendMessageErrorWhen using test numbers, you can add up to 5 numbers that can receive messages. This error is raised when the recipient is not in the list.
- class pywa.errors.InvalidParameter#
Bases:
SendMessageErrorThe parameter you passed is invalid.
- class pywa.errors.MissingRequiredParameter#
Bases:
SendMessageErrorYou must provide a value for the required parameter.
- class pywa.errors.MediaDownloadError#
Bases:
SendMessageErrorUnable to download the media sent by the user.
- class pywa.errors.MediaUploadError#
Bases:
SendMessageErrorUnable to upload the media used in the message.
- class pywa.errors.TemplateParamCountMismatch#
Bases:
SendMessageErrorThe number of variable parameter values included in the request did not match the number of variable parameters defined in the template..
- class pywa.errors.TemplateParamFormatMismatch#
Bases:
SendMessageErrorVariable parameter values formatted incorrectly.
- class pywa.errors.TemplateNotExists#
Bases:
SendMessageErrorThe template does not exist in the specified language or the template has not been approved.
- class pywa.errors.TemplateTextTooLong#
Bases:
SendMessageErrorThe template text is too long.
- class pywa.errors.GenericError#
Bases:
SendMessageErrorGeneric error.
- class pywa.errors.UnknownError#
Bases:
SendMessageErrorMessage failed to send due to an unknown error.
- class pywa.errors.AccessDenied#
Bases:
SendMessageErrorPermission is either not granted or has been removed.
Bases:
SendMessageErrorA service is temporarily unavailable.
- class pywa.errors.RecipientCannotBeSender#
Bases:
SendMessageErrorSender and recipient phone number is the same.
- class pywa.errors.BusinessPaymentIssue#
Bases:
SendMessageErrorMessage failed to send because there were one or more errors related to your payment method.
- class pywa.errors.IncorrectCertificate#
Bases:
SendMessageErrorMessage failed to send due to a phone number registration error.
- class pywa.errors.AccountInMaintenanceMode#
Bases:
SendMessageErrorBusiness Account is in maintenance mode
- class pywa.errors.UserIsInExperimentGroup#
Bases:
SendMessageErrorThe user is part of an experiment group and the message was not sent as part of an experiment.
See Marketing Message Experiment.