Home > borogove > ChatMessage > (constructor)
ChatMessage.(constructor)
Constructs a new instance of the borogove_ChatMessage class
Signature:
protected constructor(params: {attachments?: Array<borogove markdown="1"_ChatAttachment> | null, direction?: borogove_MessageDirection | null, encryption?: borogove_EncryptionInfo | null, from: borogove_JID, lang?: string | null, linkMetadata?: Array<borogove markdown="1"_LinkMetadata> | null, localId?: string | null, payloads?: Array<borogove markdown="1"_Stanza> | null, reactions?: Map<string markdown="1",Array<borogove markdown="1"_Reaction>> | null, recipients?: Array<borogove markdown="1"_JID> | null, replyId?: string | null, replyTo?: Array<borogove markdown="1"_JID> | null, replyToMessage?: borogove_ChatMessage | null, senderId: string, serverId?: string | null, serverIdBy?: string | null, sortId?: string | null, stanza?: borogove_Stanza | null, status?: borogove_MessageStatus | null, statusText?: string | null, syncPoint?: boolean | null, text?: string | null, threadId?: string | null, timestamp: string, to: borogove_JID, type?: borogove_MessageType | null, versions?: Array<borogove markdown="1"_ChatMessage> | null});
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | {attachments?: Array<borogove_ChatAttachment> | null, direction?: borogove_MessageDirection | null, encryption?: borogove_EncryptionInfo | null, from: borogove_JID, lang?: string | null, linkMetadata?: Array<borogove_LinkMetadata> | null, localId?: string | null, payloads?: Array<borogove_Stanza> | null, reactions?: Map<string,Array<borogove_Reaction>> | null, recipients?: Array<borogove_JID> | null, replyId?: string | null, replyTo?: Array<borogove_JID> | null, replyToMessage?: borogove_ChatMessage | null, senderId: string, serverId?: string | null, serverIdBy?: string | null, sortId?: string | null, stanza?: borogove_Stanza | null, status?: borogove_MessageStatus | null, statusText?: string | null, syncPoint?: boolean | null, text?: string | null, threadId?: string | null, timestamp: string, to: borogove_JID, type?: borogove_MessageType | null, versions?: Array<borogove_ChatMessage> | null} |