diff --git a/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py b/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py index 81dfc4e36..d8fd3b500 100644 --- a/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +++ b/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py @@ -47,6 +47,8 @@ def _set_raw_message_fields(message: Any, data: dict[str, Any]) -> None: Returns: None. """ + if not isinstance(data, dict): + data = {} message.raw_data = data message.message_type = data.get("message_type") msg_elements = data.get("msg_elements")