1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Added file custom_filters

Added file with custom filters. Updated the examples
This commit is contained in:
coder2020official
2021-09-12 20:22:26 +05:00
parent 1ceec3cb54
commit 7d5e9e5111
5 changed files with 72 additions and 60 deletions

View File

@@ -185,7 +185,7 @@ class TeleBot:
self.poll_answer_handlers = []
self.my_chat_member_handlers = []
self.chat_member_handlers = []
self.custom_filters = {'text': util.TextFilter(), 'text_contains': util.TextContains(), 'chat_id': util.UserFilter(), 'text_startswith': util.TextStarts()}
self.custom_filters = {}
if apihelper.ENABLE_MIDDLEWARE:
self.typed_middleware_handlers = {