We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3075337 commit b24075fCopy full SHA for b24075f
1 file changed
astrbot/core/message/components.py
@@ -653,12 +653,12 @@ async def to_dict(self) -> dict:
653
# 如果原始数据是字符串,使用 content 包装形式
654
if self.raw_data is not None:
655
return {
656
- "type": "json",
+ "type": self.type.lower(),
657
"data": {"content": self.raw_data},
658
}
659
# 如果原始数据是字典,直接返回原始字典结构
660
661
662
"data": self.data,
663
664
0 commit comments