Integrity Errors#

class pywa.errors.IntegrityError#

Bases: WhatsAppError

Base exception for all integrity errors.

class pywa.errors.TemporarilyBlocked#

Bases: IntegrityError

The WhatsApp Business Account associated with the app has been restricted or disabled for violating a platform policy.

class pywa.errors.AccountLocked#

Bases: IntegrityError

The WhatsApp Business Account associated with the app has been restricted or disabled for violating a platform policy, or we were unable to verify data included in the request against data set on the WhatsApp Business Account (e.g, the two-step pin included in the request is incorrect).

class pywa.errors.AccountRestrictedFromCountry#

Bases: IntegrityError

The WhatsApp Business Account is restricted from messaging to users in certain countries.

See WhatsApp Business Messaging Policy for details on allowed countries for messaging in your business category.