Jaa


SlackAdapter.DeleteActivityAsync Method

Definition

Standard BotBuilder adapter method to delete a previous message.

public override System.Threading.Tasks.Task DeleteActivityAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.ConversationReference reference, System.Threading.CancellationToken cancellationToken);
override this.DeleteActivityAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function DeleteActivityAsync (turnContext As ITurnContext, reference As ConversationReference, cancellationToken As CancellationToken) As Task

Parameters

turnContext
ITurnContext

A TurnContext representing the current incoming message and environment.

reference
ConversationReference

An object in the form "{activityId: id of message to delete, conversation: { id: id of slack channel}}".

cancellationToken
CancellationToken

A cancellation token for the task.

Returns

A Task representing the asynchronous operation.

Applies to