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 21:59:28 +05:00
parent ec8975c9e3
commit 8f3371dcd5

View File

@ -3075,10 +3075,9 @@ class TeleBot:
return filter_value(message)
else:
if message_filter in self.custom_filters:
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
filter_check = self.custom_filters.get(message_filter)
if filter_value == filter_check.check(message): return True
else: return False
else:
return False