oapi-sdk-go icon indicating copy to clipboard operation
oapi-sdk-go copied to clipboard

Update larkim.MessageText

Open Nomango opened this issue 2 years ago • 2 comments

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

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

Nomango avatar Mar 29 '23 09:03 Nomango

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Nov 03 '23 11:11 CLAassistant

Signed CLA.

Nomango avatar Nov 06 '23 06:11 Nomango