mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix 'custom filter' object is not iterable
This commit is contained in:
parent
88baf0b582
commit
bf06c6a6c7
1 changed files with 3 additions and 0 deletions
|
|
@ -325,6 +325,9 @@ class Text(Filter):
|
|||
_pre_process_func = lambda s: str(s).lower()
|
||||
else:
|
||||
_pre_process_func = str
|
||||
|
||||
if not isinstance(self.equals, list):
|
||||
self.equals = [self.equals]
|
||||
|
||||
# now check
|
||||
if self.equals is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue