CardActionBot class

Warning

This API is now deprecated.

Use BotBuilderCloudAdapter.CardActionBot instead.

Constructors

CardActionBot(BotFrameworkAdapter, CardActionOptions)

Creates a new instance of the CardActionBot.

Methods

registerHandler(TeamsFxAdaptiveCardActionHandler)

Registers a card action handler to the bot.

registerHandlers(TeamsFxAdaptiveCardActionHandler[])

Registers card action handlers to the bot.

Constructor Details

CardActionBot(BotFrameworkAdapter, CardActionOptions)

Creates a new instance of the CardActionBot.

new CardActionBot(adapter: BotFrameworkAdapter, options?: CardActionOptions)

Parameters

adapter

BotFrameworkAdapter

The bound BotFrameworkAdapter.

options
CardActionOptions

initialize options

Method Details

registerHandler(TeamsFxAdaptiveCardActionHandler)

Registers a card action handler to the bot.

function registerHandler(actionHandler: TeamsFxAdaptiveCardActionHandler)

Parameters

actionHandler
TeamsFxAdaptiveCardActionHandler

A card action handler to be registered.

registerHandlers(TeamsFxAdaptiveCardActionHandler[])

Registers card action handlers to the bot.

function registerHandlers(actionHandlers: TeamsFxAdaptiveCardActionHandler[])

Parameters

actionHandlers

TeamsFxAdaptiveCardActionHandler[]

A set of card action handlers to be registered.