Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextMessage

A plain text/string message type.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TextMessage(user: User, text: string, id?: undefined | string): TextMessage
  • Create a text message.

    Parameters

    • user: User

      The user who sent the message

    • text: string

      The user who sent the message

    • Optional id: undefined | string

      A unique ID for the message

    Returns TextMessage

Properties

id

id: string

A unique ID for the message

Optional nlu

nlu: bot.NLU

text

text: string

The user who sent the message

user

user: User

Methods

clone

  • clone(): any

toString

  • toString(): string

Generated using TypeDoc