Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion astrbot/core/platform/sources/telegram/tg_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def collect_commands(self) -> list[BotCommand]:

for handler_md in star_handlers_registry:
handler_metadata = handler_md
if not star_map[handler_metadata.handler_module_path].activated:
if handler_metadata.handler_module_path not in star_map or not star_map[handler_metadata.handler_module_path].activated:
continue
if not handler_metadata.enabled:
continue
Expand Down