Update astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Weilong Liao
2026-07-06 22:54:00 +08:00
committed by GitHub
parent ab83662b5a
commit 90dc50688e

View File

@@ -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")