Triggered when a user message was received. The payload contains the message.

interface UserMessageEvent {
    payload: { message?: string; state?: string };
    type: "userMessage";
}

Hierarchy

  • EventWithPayload
    • UserMessageEvent

Properties

Properties

payload: { message?: string; state?: string }

Type declaration

  • Optionalmessage?: string

    Actual chat message

  • Optionalstate?: string

    Internal message identifier

type: "userMessage"