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
87fb30d57b
commit
8e4d70b9c6
@ -3076,8 +3076,13 @@ class TeleBot:
|
||||
else:
|
||||
if message_filter in self.custom_filters:
|
||||
filter_check = self.custom_filters.get(message_filter)
|
||||
if filter_value == filter_check.check(message): return True
|
||||
else: return False
|
||||
if type(filter_value) is bool:
|
||||
|
||||
if filter_value == filter_check.check(message): return True
|
||||
else: return False
|
||||
else:
|
||||
if filter_check.check(message,filter_value) is True: return True
|
||||
else: return False
|
||||
else:
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user