Fixed the work of the websocket

This commit is contained in:
algizn97
2025-12-18 18:46:21 +05:00
parent 867802b2a7
commit cb6499e347
2 changed files with 128 additions and 67 deletions

1
run.py
View File

@@ -31,7 +31,6 @@ async def main():
dp = Dispatcher(storage=storage)
dp.include_router(router)
web_socket = WebSocketBot(telegram_bot=bot)
await web_socket.clear_user_sockets()
ws_task = asyncio.create_task(web_socket.run_user_check_loop())
tg_task = asyncio.create_task(dp.start_polling(bot))