add profile dialog

This commit is contained in:
2025-09-25 20:48:39 +03:00
parent 8c801eb66e
commit cbe1919343
12 changed files with 117 additions and 14 deletions

View File

@@ -1,13 +1,16 @@
import asyncio
from aiogram import Bot, Dispatcher
from aiogram.client.default import DefaultBotProperties
from aiogram.enums import ParseMode
from aiogram_dialog import setup_dialogs
from app.bot.dialogs.flows import dialogs_router
from app.bot.handlers.commands import commands_router
from app.bot.middlewares import GetUserMiddleware
from config.config import settings
bot = Bot(token=settings.bot_token)
bot = Bot(token=settings.bot_token, default=DefaultBotProperties(parse_mode=ParseMode.MARKDOWN_V2))
dp = Dispatcher()
@@ -15,6 +18,8 @@ async def main():
setup_dialogs(dp)
dp.include_router(commands_router)
dp.include_router(dialogs_router)
dp.update.outer_middleware(GetUserMiddleware())
await dp.start_polling(bot)