Notifies that a message has arrived to the client or delivered to the contact center

interface MessageEvent {
    attachments?: Attachment[];
    body: MessageBody;
    conversationId?: string;
    eventDate: Date;
    lastUpdatedAt: Date;
    messageId: string;
    parentMessageId?: string;
    receivedAt: Date;
    senderParticipant: Participant;
}

Hierarchy

  • MessagingEventPayload
    • MessageEvent

Properties

attachments?: Attachment[]

Attachments

Body of the message

conversationId?: string

The unique 36 character internal id that represents the conversation.

eventDate: Date

The date-time when the event was generated by the Contact Center

lastUpdatedAt: Date

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

messageId: string

The unique 36 character internal id for this specific message.

parentMessageId?: string

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

receivedAt: Date

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

senderParticipant: Participant

The participant who sent the message