feat(watcher): watched bots report capture uptime like the userbot

This commit is contained in:
hh committed 2026-10-19 05:25:44 +00:00
1 parent f62c345e2b
commit 7f7fc1296e
2 files changed
+21 -3

No files matched your search

+6
View File
@@ -113,6 +113,12 @@ class BotRegistry:
def running(self) -> list[int]:
return list(self._running)
@property
def connected_accounts(self) -> list[int]:
return [
bot.account_id for bot in self._running.values() if bot.client.is_connected
]
async def sync(self) -> None:
async with self._lock:
await self._adopt_dropped_in()