serializeToString

@ExperimentalSerializationApi
fun MessageChain.serializeToString(format: StringFormat): String

MessageChain 序列化为指定格式的字符串.

See also

kotlinx.serialization.StringFormat