init
Docker Hub / build-and-push (push) Failing after 13s

This commit is contained in:
kislovdm
2026-06-12 00:42:55 +03:00
parent 64fe9c466e
commit e7c32da1f9
51 changed files with 2454 additions and 3248 deletions
+20
View File
@@ -0,0 +1,20 @@
import asyncio
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from aiogram import Bot
class BotHolder:
def __init__(self) -> None:
self.bot: Bot | None = None
self.ready = asyncio.Event()
def set_bot(self, bot: "Bot") -> None:
self.bot = bot
self.ready.set()
async def wait_bot(self) -> "Bot":
await self.ready.wait()
assert self.bot is not None
return self.bot