mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Fix default filters generator.
This commit is contained in:
parent
a333216e25
commit
cc97fb169f
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ def generate_default_filters(*args, **kwargs):
|
||||||
filters_set = []
|
filters_set = []
|
||||||
|
|
||||||
for name, filter_ in kwargs.items():
|
for name, filter_ in kwargs.items():
|
||||||
if filter_ is None:
|
if not filter_:
|
||||||
continue
|
continue
|
||||||
if name == 'commands':
|
if name == 'commands':
|
||||||
if isinstance(filter_, str):
|
if isinstance(filter_, str):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue