Template Creation Errors#

class pywa.errors.TemplateCreationError#

Bases: WhatsAppError

Base exception for all template creation errors.

class pywa.errors.TemplateCharacterLimitExceeded#

Bases: TemplateCreationError

A field in your template has exceeded the maximum character limit allowed.

class pywa.errors.TemplateHeaderFormatIncorrect#

Bases: TemplateCreationError

Your message header contains invalid formatting.

class pywa.errors.TemplateBodyFormatIncorrect#

Bases: TemplateCreationError

Your message body contains invalid formatting.

class pywa.errors.TemplateFooterFormatIncorrect#

Bases: TemplateCreationError

Your message footer contains invalid formatting.

class pywa.errors.TemplateParametersWordsRatioExceedsLimit#

Bases: TemplateCreationError

This template has too many variables for its length. Reduce the number of variables or increase the message length.

class pywa.errors.TemplateLeadingOrTrailingParametersNotAllowed#

Bases: TemplateCreationError

Variables cannot be at the start or end of the template.

class pywa.errors.TemplateLimitExceeded#

Bases: TemplateCreationError

You have exceeded the maximum number of message templates you can have for this WhatsApp business account.