Template Status#

class pywa.types.TemplateStatus#

Represents status of a template.

Variables:
  • id (str) – ID of Whatsapp Business Accounts this update belongs to.

  • timestamp (datetime.datetime) – Timestamp of the update.

  • event (TemplateEvent) – The event that occurred (the template was approved, rejected, etc.).

  • message_template_id (int) – The ID of the template.

  • message_template_name (str) – The name of the template.

  • message_template_language (str) – The language of the template.

  • reason (TemplateRejectionReason) – The reason the template was rejected (if applicable).

  • disable_date (str | None) – The date the template was disabled (if applicable).

  • other_info (str | None) – Additional information about the template (if applicable).

class TemplateEvent(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

The event that occurred (the template was approved, rejected, etc.).

Variables:
  • APPROVED – The template was approved.

  • DISABLED – The template was disabled.

  • IN_APPEAL – The template is in appeal.

  • PENDING – The template is pending.

  • REINSTATED – The template was reinstated.

  • REJECTED – The template was rejected.

  • PENDING_DELETION – The template is pending deletion.

  • FLAGGED – The template was flagged.

  • PAUSED – The template was paused.

  • UNKNOWN – Unknown event.

class TemplateRejectionReason(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

The reason the template was rejected (if applicable).

Variables:
  • ABUSIVE_CONTENT – The template was rejected because it contained abusive content.

  • INCORRECT_CATEGORY – The template was rejected because it was in the wrong category.

  • INVALID_FORMAT – The template was rejected because it was in the wrong format.

  • SCAM – The template was rejected because it was a scam.

  • NONE – The template was not rejected.