Add [bot]: add dispatcher for polling the bot

This commit is contained in:
Kirill Samoylenkov 2025-10-19 18:01:25 +05:00
parent eb68808880
commit 756de23bcf

View file

@ -1,6 +1,7 @@
__all__ = ["start_bot"]
from aiogram import Bot, Dispatcher
from redis.asyncio.client import Redis
from sqlalchemy.ext.asyncio import AsyncSession
@ -9,4 +10,8 @@ async def start_bot(
bot_token: str,
redis_client: Redis,
database_session: AsyncSession,
) -> None: ...
) -> None:
bot = Bot(bot_token)
dp = Dispatcher()
await dp.start_polling(bot)