refactor: unify capability shutdown convergence

This commit is contained in:
jxxghp
2026-08-24 13:48:11 +08:00
parent 2aa41ea8fe
commit 009631b8ee
18 changed files with 330 additions and 70 deletions
+1
View File
@@ -62,6 +62,7 @@ def _telegram_client(bot=None) -> Telegram:
"""构造不连接外部服务且持有独立运行状态的 Telegram client。"""
telegram = Telegram.__new__(Telegram)
telegram._bot = bot or _FakeTelegramBot()
telegram._polling_thread = None
telegram._telegram_token = "token"
telegram._telegram_chat_id = "default-chat"
telegram._user_chat_mapping = {}