Переделано добавление Middleware
This commit is contained in:
parent
3fa34079ae
commit
338d9c4089
@ -32,9 +32,8 @@ async def custom_data(event: MessageCreated, custom_data: str):
|
|||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
dp.middlewares = [
|
dp.middleware(CustomDataForRouterMiddleware())
|
||||||
CustomDataForRouterMiddleware()
|
|
||||||
]
|
|
||||||
await dp.start_polling(bot)
|
await dp.start_polling(bot)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user