Message Status Filters#
- pywa.filters.template_status#
alias of
TemplateStatusFilter
- template_status.template_name: lambda name: TemplateStatusFilterT = <function TemplateStatusFilter.<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)