BotMessagePreviewEditHandlerAsync<TState> Delegate

Definition

Function for handling Message Extension botMessagePreview edit events.

public delegate System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse> BotMessagePreviewEditHandlerAsync<TState>(ITurnContext turnContext, TState turnState, Activity activityPreview, CancellationToken cancellationToken) where TState : TurnState;
type BotMessagePreviewEditHandlerAsync<'State (requires 'State :> TurnState)> = delegate of ITurnContext * 'State * Activity * CancellationToken -> Task<MessagingExtensionActionResponse>
Public Delegate Function BotMessagePreviewEditHandlerAsync(Of TState)(turnContext As ITurnContext, turnState As TState, activityPreview As Activity, cancellationToken As CancellationToken) As Task(Of MessagingExtensionActionResponse) 

Type Parameters

TState

Type of the turn state. This allows for strongly typed access to the turn state.

Parameters

turnContext
ITurnContext

A strongly-typed context object for this turn.

turnState
TState

The turn state object that stores arbitrary data for this turn.

activityPreview
Activity

The activity that's being previewed by the user.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value

An instance of MessagingExtensionActionResponse.

Applies to