Template Status Filters#

pywa.filters.template_status#

alias of _TemplateStatusFilters

template_status.template_name: lambda name: _TemplateStatusFilterT = <function _TemplateStatusFilters.<lambda>>#

Filter for template status updates that are for the given template name.

>>> template_status.template_name("my_template")
static template_status.on_event(*events: _Ts.TemplateEvent) _TemplateStatusFilterT#

Filter for template status updates that are for the given event/s.

Parameters:

*events – The template events to filter for.

>>> template_status.on_event(_Ts.TemplateEvent.APPROVED)
static template_status.on_rejection_reason(*reasons: _Ts.TemplateRejectionReason) _TemplateStatusFilterT#

Filter for template status updates that are for the given reason/s.

Parameters:

*reasons – The template reasons to filter for.

>>> template_status.on_rejection_reason(_Ts.TemplateRejectionReason.INCORRECT_CATEGORY)