Template Category Update

Template Category Update#

class pywa.types.TemplateCategoryUpdate#

Represents a template category update.

Triggers:

- The existing category of a WhatsApp template is going to be changed by an automated process.
- The existing category of a WhatsApp template is changed manually or by an automated process.
Variables:
  • id – ID of Whatsapp Business Accounts this update belongs to.

  • timestamp – Timestamp of the update (in UTC).

  • template_id – The ID of the template.

  • template_name – The name of the template.

  • template_language – The language of the template.

  • correct_category (TemplateCategory | None) – The category that the template will be recategorized as in 24 hours.

  • previous_category (TemplateCategory | None) – The template’s previous category.

  • new_category (TemplateCategory) – If correct_category is set - the new_category is the current category of the template. If previous_category is set - the new_category is the category that the template was recategorized to.