Username Errors#

class pywa.errors.UsernameError#

Bases: WhatsAppError

Base exception for all username errors.

class pywa.errors.UsernameNotAvailable#

Bases: UsernameError

The username has already been claimed, doesn’t pass our internal checks, or is not available for on the platform. Try requesting another username.

class pywa.errors.AccountNotEligibleToRequestUsername#

Bases: UsernameError

The business portfolio that owns the WhatsApp Business Account and business phone number must have a higher messaging limit.

class pywa.errors.FBAccountNotLinked#

Bases: UsernameError

You must link the phone number to the Facebook Page that already uses the requested username.

class pywa.errors.IGAccountNotLinked#

Bases: UsernameError

You must link the phone number to the Instagram account that already uses the requested username.

class pywa.errors.UsernameTransferRequired#

Bases: UsernameError

The requested username is currently in use on another business phone number within your business portfolio. To transfer it to this phone number, resend the request with force_transfer=True.