Message that belongs to an conversation that is sent by any of the participants.

interface Message {
    attachments?: Attachment[];
    displayName?: string;
    messageBody: string;
    messageId: string;
    messageType: MessageType;
    parentMessageId?: string;
    participantType: ParticipantType;
    receivedAt?: string;
    richMediaPayload?: RichMediaPayload;
}

Properties

attachments?: Attachment[]

Attachments contained in the message.

displayName?: string

Display name of the participant who sent the message.

messageBody: string

The text of the message body.

messageId: string

The unique 36 character internal id for this specific message.

messageType: MessageType

The type of the message.

parentMessageId?: string

The unique 36 character internal id for the message that is the parent of this message

participantType: ParticipantType

Type of the participant who sent the message

receivedAt?: string

The date-time when the message was received by the Contact Center

richMediaPayload?: RichMediaPayload

Details of rich media contained in the message.