Добавлены миддлвари на примере ThrottlingMiddleware
This commit is contained in:
7
middlewares/__init__.py
Normal file
7
middlewares/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from aiogram import Dispatcher
|
||||
|
||||
from .throttling import ThrottlingMiddleware
|
||||
|
||||
|
||||
def setup(dp: Dispatcher):
|
||||
dp.middleware.setup(ThrottlingMiddleware)
|
||||
Reference in New Issue
Block a user