mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +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 = []
|
||||
|
||||
for name, filter_ in kwargs.items():
|
||||
if filter_ is None:
|
||||
if not filter_:
|
||||
continue
|
||||
if name == 'commands':
|
||||
if isinstance(filter_, str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue