This commit is contained in:
xds
2026-02-09 17:01:48 +03:00
parent a9d24c725e
commit 00e83b8561
13 changed files with 20 additions and 13 deletions

View File

@@ -143,10 +143,10 @@ async def lifespan(app: FastAPI):
# 2. ЗАПУСК БОТА (в фоне)
# Важно: handle_signals=False, чтобы бот не перехватывал сигналы остановки у uvicorn
# Мы НЕ передаем сюда dao=..., так как он уже подключен через Middleware выше
polling_task = asyncio.create_task(
dp.start_polling(bot, handle_signals=False)
)
print("🤖 Bot polling started")
# polling_task = asyncio.create_task(
# dp.start_polling(bot, handle_signals=False)
# )
# print("🤖 Bot polling started")
yield