Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextMessage

A plain text/string message type.

Hierarchy

Indexable

[key: string]: any

A plain text/string message type.

Index

Constructors

Properties

Methods

Constructors

constructor

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

    Parameters

    • user: User

      The user who sent the message

    • text: string

      The text content of the message

    • Optional id: undefined | string

      A unique ID for the message

    Returns TextMessage

Properties

id

id: string

Optional nlu

nlu: NLU

text

text: 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