Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-29 16:37:44 +00:00
Update
This commit is contained in:
@@ -5,6 +5,7 @@ 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())
|
||||
|
||||
Reference in New Issue
Block a user