Home > borogove > ChatMessageBuilder > (constructor)

ChatMessageBuilder.(constructor)

Create a new message builder from a parameter object

Signature:

constructor(params?: {attachments?: Array<borogove markdown="1"_ChatAttachment> | null, direction?: borogove_MessageDirection | null, encryption?: borogove_EncryptionInfo | null, html?: borogove_Html | null, lang?: string | null, localId?: string | null, payloads?: Array<borogove markdown="1"_Stanza> | null, reactions?: Map<string markdown="1",Array<borogove markdown="1"_Reaction>> | null, replyId?: string | null, replyToMessage?: borogove_ChatMessage | null, senderId?: string | null, serverId?: string | null, serverIdBy?: string | null, status?: borogove_MessageStatus | null, subject?: string | null, syncPoint?: boolean | null, text?: string | null, threadId?: string | null, timestamp?: string | null, type?: borogove_MessageType | null, versions?: Array<borogove markdown="1"_ChatMessage> | null} | null);

Parameters

Parameter Type Description
params {attachments?: Array<borogove_ChatAttachment> | null, direction?: borogove_MessageDirection | null, encryption?: borogove_EncryptionInfo | null, html?: borogove_Html | null, lang?: string | null, localId?: string | null, payloads?: Array<borogove_Stanza> | null, reactions?: Map<string,Array<borogove_Reaction>> | null, replyId?: string | null, replyToMessage?: borogove_ChatMessage | null, senderId?: string | null, serverId?: string | null, serverIdBy?: string | null, status?: borogove_MessageStatus | null, subject?: string | null, syncPoint?: boolean | null, text?: string | null, threadId?: string | null, timestamp?: string | null, type?: borogove_MessageType | null, versions?: Array<borogove_ChatMessage> | null} | null (Optional) initial values for the message builder