raito.utils.helpers.filters module

async raito.utils.helpers.filters.call_filters(event, data, *filters)[исходный код]

Run a sequence of filters for a Telegram event.

Параметры:
  • event (TelegramObject) – Telegram update object.

  • data (dict) – Aiogram context dictionary.

  • filters (Callable[[...], Any]) – Aiogram filters to apply.

Результат:

True if all filters pass, False otherwise.

Исключение:

RuntimeError – If handler is missing from data.

Тип результата:

bool