文本消息体。

interface TextMessageBody {
    content: string;
    targetLanguages?: string[];
    translations?: Record<string, string>;
}

Properties

content: string

消息文本内容。

targetLanguages?: string[]

目标翻译语言代码列表。

translations?: Record<string, string>

语言代码到翻译文本的映射。