expense-bot/middlewares/__init__.py

9 lines
179 B
Python

from aiogram import Dispatcher
from loader import dp
from .throttling import ThrottlingMiddleware
if __name__ == "middlewares":
dp.middleware.setup(ThrottlingMiddleware())