bot module

Note

This namespace is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Namespace 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()

Note

This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

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)

Note

This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

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.