Skip to content

Conversation

@Nomango
Copy link

@Nomango Nomango commented Mar 29, 2023

MessageText 直接用 strings.Builder 构造 json 内容,结果可能是无效的json内容,尤其是当 text 内容包含双引号、换行符、unicode的时候,必须用 \\\"\\\n 才可以。

所以 MessageText.Build() 也应该和其他类型一样,序列化为 json 并返回 (string, error),才更合理。

@CLAassistant
Copy link

CLAassistant commented Nov 3, 2023

CLA assistant check
All committers have signed the CLA.

@Nomango
Copy link
Author

Nomango commented Nov 6, 2023

Signed CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants