MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / _get_middlewares

Method _get_middlewares

telebot/__init__.py:10877–10887  ·  view source on GitHub ↗

Check middleware :param update_type: :return:

(self, update_type)

Source from the content-addressed store, hash-verified

10875
10876 # middleware check-up method
10877 def _get_middlewares(self, update_type):
10878 """
10879 Check middleware
10880
10881 :param update_type:
10882 :return:
10883 """
10884 middlewares = None
10885 if self.middlewares:
10886 middlewares = [i for i in self.middlewares if update_type in i.update_types]
10887 return middlewares
10888
10889
10890 def _run_middlewares_and_handler(self, message, handlers, middlewares, update_type):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected