IDialogVersionOptions interface

Options passed to Middleware.dialogVersion().

Properties

message

Optional message to send the user when their conversation is ended due to a version number change. A default message is provided.

resetCommand

Optional regular expression to listen for to manually detect a request to reset the users session state.

version

Current major.minor version for the bots dialogs. Major version increments result in existing conversations between the bot and user being restarted.

Property Details

message

Optional message to send the user when their conversation is ended due to a version number change. A default message is provided.

message?: TextOrMessageType

Property Value

resetCommand

Optional regular expression to listen for to manually detect a request to reset the users session state.

resetCommand?: RegExp

Property Value

RegExp

version

Current major.minor version for the bots dialogs. Major version increments result in existing conversations between the bot and user being restarted.

version: number

Property Value

number