Jaa


TeamsActivityHandler.OnTeamsMessagingExtensionBotMessagePreviewEditAsync Method

Definition

Invoked when a messaging extension bot message preview edit activity is received from the connector.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse> OnTeamsMessagingExtensionBotMessagePreviewEditAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.MessagingExtensionAction action, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMessagingExtensionBotMessagePreviewEditAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.MessagingExtensionAction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse>
override this.OnTeamsMessagingExtensionBotMessagePreviewEditAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.MessagingExtensionAction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse>
Protected Overridable Function OnTeamsMessagingExtensionBotMessagePreviewEditAsync (turnContext As ITurnContext(Of IInvokeActivity), action As MessagingExtensionAction, cancellationToken As CancellationToken) As Task(Of MessagingExtensionActionResponse)

Parameters

turnContext
ITurnContext<IInvokeActivity>

A strongly-typed context object for this turn.

action
MessagingExtensionAction

The messaging extension action.

cancellationToken
CancellationToken

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

Returns

The Messaging Extension Action Response for the action.

Applies to