1
0
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:
Badiboy 2022-09-17 12:55:55 +03:00
parent da639dd1f6
commit 598de25b6d

View File

@ -5876,7 +5876,7 @@ class TeleBot:
return False
# middleware check-up method
def _check_middlewares(self, update_type):
def _get_middlewares(self, update_type):
"""
Check middleware
@ -5988,7 +5988,7 @@ class TeleBot:
return
if self.use_class_middlewares:
middlewares = self._check_middlewares(update_type)
middlewares = self._get_middlewares(update_type)
else:
middlewares = None
for message in new_messages: