mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update __init__.py
This commit is contained in:
parent
e89acc8ba6
commit
88f91518c7
@ -3140,9 +3140,9 @@ class TeleBot:
|
||||
filter_check = self.custom_filters.get(message_filter)
|
||||
if not filter_check:
|
||||
return False
|
||||
elif isinstance(filter_check(), util.SimpleCustomFilter):
|
||||
elif isinstance(filter_check, util.SimpleCustomFilter):
|
||||
return filter_value == filter_check.check(message)
|
||||
elif isinstance(filter_check(), util.AdvancedCustomFilter):
|
||||
elif isinstance(filter_check, util.AdvancedCustomFilter):
|
||||
return filter_check.check(message, filter_value)
|
||||
else:
|
||||
logger.error("Custom filter: wrong type. Should be SimpleCustomFilter or AdvancedCustomFilter.")
|
||||
|
Loading…
Reference in New Issue
Block a user