Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RichMessage

A message containing payload attributes from messaging platform.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new RichMessage(user: User, payload: any, id?: undefined | string): RichMessage
  • Create a rich message.

    Parameters

    • user: User

      The user who sent the message

    • payload: any

      The payload to attach

    • Optional id: undefined | string

      A unique ID for the message

    Returns RichMessage

Properties

id

id: string

A unique ID for the message

Optional nlu

nlu: bot.NLU

payload

payload: any

The payload to attach

user

user: User

Methods

clone

  • clone(): any

toString

  • toString(): string

Generated using TypeDoc