Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Message

Represents an incoming message from the chat.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a message.

    Parameters

    • user: IUser

      The sender's user instance (or properties to create it)

    • Default value id: string = bot.random()

      A unique ID for the message

    Returns Message

Properties

id

id: string

A unique ID for the message

Optional nlu

nlu: bot.NLU

user

user: User

Methods

Abstract toString

  • toString(): string

Generated using TypeDoc