1
0
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:
coder2020official 2021-09-11 22:30:53 +05:00
parent 87fb30d57b
commit 8e4d70b9c6

View File

@ -3076,8 +3076,13 @@ class TeleBot:
else:
if message_filter in self.custom_filters:
filter_check = self.custom_filters.get(message_filter)
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