1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update custom_filters.py

This commit is contained in:
_run 2022-02-25 19:52:56 +05:00 committed by GitHub
parent 301b9288a4
commit 75baf6dd96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,7 +285,7 @@ class StateFilter(AdvancedCustomFilter):
if isinstance(text, list):
new_text = []
for i in text:
if isinstance(text, State): i = i.name
if isinstance(i, State): i = i.name
new_text.append(i)
text = new_text
elif isinstance(text, State):