创建合并消息的入参。

interface CreateCombineMessageParams {
    conversationId: string;
    conversationType: "singleChat" | "groupChat" | "chatRoom";
    ext?: Record<string, unknown>;
    timestamp?: number;
    receiverList?: string[];
    deliverOnlineOnly?: boolean;
    webhookEnv?: string;
    priority?: MessagePriority;
    needReadReceipt?: boolean;
    isChatThread?: boolean;
    title: string;
    summary: string;
    compatibleText?: string;
    messageList: readonly Message[];
}

Hierarchy (View Summary)

Properties

conversationId: string

会话 ID:单聊时为对端用户 ID;向当前用户的指定其他设备发消息时,可传 当前用户ID/设备ID;群聊时为群组 ID,聊天室时为聊天室 ID。

conversationType: "singleChat" | "groupChat" | "chatRoom"

会话类型。

ext?: Record<string, unknown>

消息扩展字段,需保持 JSON 可序列化。

timestamp?: number

本地时间戳,单位毫秒;不传时由 SDK 生成。

receiverList?: string[]

群聊或聊天室定向消息的接收者列表;单聊不支持。

deliverOnlineOnly?: boolean

是否仅投递给在线用户。

webhookEnv?: string

消息协议中的 Webhook 环境标识。

priority?: MessagePriority

消息优先级。

needReadReceipt?: boolean

是否需要消息已读回执。单聊和群聊均可使用。

isChatThread?: boolean

是否创建 Thread 回复消息,仅群聊 Thread 场景有效。

title: string

合并消息标题。

summary: string

合并消息摘要。

compatibleText?: string

兼容展示文本,默认 [聊天记录]

messageList: readonly Message[]

被合并的消息列表。