From 52a4c986a8498fc7611cfefe6b7ef2b711955045 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Wed, 28 May 2025 00:31:04 +0800 Subject: [PATCH] fix: update star_handlers_registry iteration in TelegramPlatformAdapter --- astrbot/core/platform/sources/telegram/tg_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/telegram/tg_adapter.py b/astrbot/core/platform/sources/telegram/tg_adapter.py index 0f66ef15b..c6fc56b93 100644 --- a/astrbot/core/platform/sources/telegram/tg_adapter.py +++ b/astrbot/core/platform/sources/telegram/tg_adapter.py @@ -144,7 +144,7 @@ class TelegramPlatformAdapter(Platform): command_dict = {} skip_commands = {"start"} - for handler_md in star_handlers_registry._handlers: + for handler_md in star_handlers_registry: handler_metadata = handler_md if not star_map[handler_metadata.handler_module_path].activated: continue