• Public
  • Public/Protected
  • All

Class Middleware


  • Middleware



Static dialogVersion

Static firstRun

  • Adds a first run experience to a bot. The middleware uses Session.userData to store the latest version of the first run dialog the user has been through. Incrementing the version number can force users to run back through either the full or a partial first run dialog.


    • options: IFirstRunOptions

      Settings to configure the bahviour of the installed middleware.

    Returns IMiddlewareMap

Static sendTyping

  • Installs a piece of middleware that will always send an initial typing indication to the user. This is useful because it lets you send the typing indication before any LUIS models are called. The typing indicator will only stay valid for a few seconds so if you're performing any long running operations you may want to send an additional typing indicator using session.sendTyping.

    Returns IMiddlewareMap


  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method