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

@ -3074,7 +3074,6 @@ class TeleBot:
elif message_filter == 'func': elif message_filter == 'func':
return filter_value(message) return filter_value(message)
else: else:
if message_filter in self.custom_filters:
if message_filter in self.custom_filters: if message_filter in self.custom_filters:
filter_check = self.custom_filters.get(message_filter) filter_check = self.custom_filters.get(message_filter)
if filter_value == filter_check.check(message): return True if filter_value == filter_check.check(message): return True