Share via


WebexAdapter.SendActivitiesAsync Method

Definition

Standard BotBuilder adapter method to send a message from the bot to the messaging API.

public override System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse[]> SendActivitiesAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.Activity[] activities, System.Threading.CancellationToken cancellationToken);
override this.SendActivitiesAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Activity[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse[]>
Public Overrides Function SendActivitiesAsync (turnContext As ITurnContext, activities As Activity(), cancellationToken As CancellationToken) As Task(Of ResourceResponse())

Parameters

turnContext
ITurnContext

A TurnContext representing the current incoming message and environment.

activities
Activity[]

An array of outgoing activities to be sent back to the messaging API.

cancellationToken
CancellationToken

A cancellation token for the task.

Returns

A Task representing the asynchronous operation.

Applies to