bot module

Module for interaction with adaptive card dialogs that need to communicate with the bot framework

Functions

isSupported()

Checks if dialog.adaptiveCard.bot capability is supported by the host

open(BotAdaptiveCardDialogInfo, DialogSubmitHandler)

Allows an app to open an adaptive card-based dialog module using bot.

Function Details

isSupported()

Checks if dialog.adaptiveCard.bot capability is supported by the host

function isSupported(): boolean

Returns

boolean

boolean to represent whether dialog.adaptiveCard.bot is supported

open(BotAdaptiveCardDialogInfo, DialogSubmitHandler)

Allows an app to open an adaptive card-based dialog module using bot.

function open(botAdaptiveCardDialogInfo: BotAdaptiveCardDialogInfo, submitHandler?: DialogSubmitHandler)

Parameters

botAdaptiveCardDialogInfo
BotAdaptiveCardDialogInfo

An object containing the parameters of the dialog module including completionBotId.

submitHandler
DialogSubmitHandler

Handler that triggers when the dialog has been submitted or closed.