mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-07-25 09:44:29 +00:00
13 lines
401 B
Python
13 lines
401 B
Python
# - *- coding: utf- 8 - *-
|
|
from aiogram import Dispatcher
|
|
|
|
from tgbot.middlewares.exists_user import ExistsUserMiddleware
|
|
from tgbot.middlewares.throttling import ThrottlingMiddleware
|
|
|
|
|
|
def register_all_middlwares(dp: Dispatcher):
|
|
dp.callback_query.outer_middleware(ExistsUserMiddleware())
|
|
dp.message.outer_middleware(ExistsUserMiddleware())
|
|
|
|
dp.message.middleware(ThrottlingMiddleware())
|