Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RichMessage

A message containing payload attributes from messaging platform.

Hierarchy

Indexable

[key: string]: any

A message containing payload attributes from messaging platform.

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a rich message. Create a rich message.

    Parameters

    • user: User

      The user who sent the message

    • payload: IPayload

      The payload to attach

    • Optional text: string | undefined

      The text content of the message

    • Optional id: undefined | string

      A unique ID for the message

    Returns RichMessage

Properties

id

id: string

Optional nlu

nlu: NLU

payload

payload: IPayload

The payload to attach

Optional text

text: undefined | string

The text content of the message

type

type: string

user

user: User

Methods

clone

  • clone(): any
  • Returns any

toString

  • toString(): string
  • Returns string

Generated using TypeDoc