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

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

Properties

attachments?: Attachment[]

Attachments contained in the message.

canned?: boolean

Indicates whether this message is a canned message.

displayName?: string

Display name of the participant who sent the message.

messageBody: string

The text of the message body.

messageId: string

The identifier of this specific message.

messageType: MessageType

The type of the message.

parentMessageId?: string

The identifier of 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.