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