Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-26 23:17:43 +00:00
Update
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# - *- 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())
|
||||
Reference in New Issue
Block a user