Context of the received message passed to various recognition methods.
Shared conversation data that's visible to all members of the conversation.
Data for the active dialog.
(Optional) The top intent identified for the message.
(Optional) The name of the library passing the context is from.
DEPRECATED use preferredLocale() instead.
The localizer for the session.
The current session logger.
The message received from the user. For bot originated messages this may only contain the "to" & "from" fields.
Private conversation data that's only visible to the user.
Data for the user that's persisted across all conversations with the bot.
Returns a copy of the current dialog stack for the session.
Loads a localized string for the messages language. If arguments are passed the localized string will be treated as a template and formatted using sprintf-js (see their docs for details.)
String to use as a key in the localized string table. Typically this will just be the english version of the string.
Rest ...args: any
(Optional) arguments used to format the final output string.
Loads the plural form of a localized string for the messages language. The output string will be formatted to include the count by replacing %d in the string with the count.
Singular form of the string to use as a key in the localized string table. Use %d to specify where the count should go.
Plural form of the string to use as a key in the localized string table. Use %d to specify where the count should go.
Count to use when determining whether the singular or plural form of the string should be used.
Returns the users preferred locale.