aiogram / aiogram/i18n

[BUG] `LazyFilter` doesn't work in `or_f()`

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
47
Forks
6
PR merge metrics
No merged PRs in 30d

Description

```python
@router.message(
or_f(
Command("language", "lang"),
LazyFilter("settings-lang"),
),
)
```

## Excepted behaviour:
Handler reacts on:
* commands: "/lang", "/language"
* text-commands: "lang", "мова"

## Current behaviour:
It does not react, because `LazyFilter.startup(...)` is not called when LazyFilter is in `or_f()`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.