Share via


CardActionBot class

Warning

This API is now deprecated.

This package will be deprecated by 2026-07. Please use Microsoft 365 Agents SDK instead.

A card action bot to respond to adaptive card universal actions.

Constructors

CardActionBot(CloudAdapter, CardActionOptions)

Create a new instance of the CardActionBot.

Methods

registerHandler(TeamsFxAdaptiveCardActionHandler)

Register a card action handler to the bot.

registerHandlers(TeamsFxAdaptiveCardActionHandler[])

Register card action handlers to the bot.

Constructor Details

CardActionBot(CloudAdapter, CardActionOptions)

Warning

This API is now deprecated.

This package will be deprecated by 2026-07. Please use Microsoft 365 Agents SDK instead.

Create a new instance of the CardActionBot.

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

Parameters

adapter
CloudAdapter

The bound CloudAdapter.

options
CardActionOptions

The initialize options.

Method Details

registerHandler(TeamsFxAdaptiveCardActionHandler)

Warning

This API is now deprecated.

This package will be deprecated by 2026-07. Please use Microsoft 365 Agents SDK instead.

Register a card action handler to the bot.

function registerHandler(actionHandler: TeamsFxAdaptiveCardActionHandler)

Parameters

actionHandler
TeamsFxAdaptiveCardActionHandler

A card action handler to be registered.

registerHandlers(TeamsFxAdaptiveCardActionHandler[])

Warning

This API is now deprecated.

This package will be deprecated by 2026-07. Please use Microsoft 365 Agents SDK instead.

Register card action handlers to the bot.

function registerHandlers(actionHandlers: TeamsFxAdaptiveCardActionHandler[])

Parameters

actionHandlers

TeamsFxAdaptiveCardActionHandler[]

A set of card action handlers to be registered.