mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Rename _check_middlewares to _get_middlewares
This commit is contained in:
parent
da639dd1f6
commit
598de25b6d
@ -5876,7 +5876,7 @@ class TeleBot:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
# middleware check-up method
|
# middleware check-up method
|
||||||
def _check_middlewares(self, update_type):
|
def _get_middlewares(self, update_type):
|
||||||
"""
|
"""
|
||||||
Check middleware
|
Check middleware
|
||||||
|
|
||||||
@ -5988,7 +5988,7 @@ class TeleBot:
|
|||||||
return
|
return
|
||||||
|
|
||||||
if self.use_class_middlewares:
|
if self.use_class_middlewares:
|
||||||
middlewares = self._check_middlewares(update_type)
|
middlewares = self._get_middlewares(update_type)
|
||||||
else:
|
else:
|
||||||
middlewares = None
|
middlewares = None
|
||||||
for message in new_messages:
|
for message in new_messages:
|
||||||
|
Loading…
Reference in New Issue
Block a user