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.
Read more at developers.facebook.com.
- 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_categoryis set - thenew_categoryis the current category of the template. Ifprevious_categoryis set - thenew_categoryis the category that the template was recategorized to.