TeamsInfo.SendMessageToListOfChannelsAsync Method

Definition

Sends a message to the provided list of Teams channels.

public static System.Threading.Tasks.Task<string> SendMessageToListOfChannelsAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.IActivity activity, System.Collections.Generic.List<Microsoft.Bot.Schema.Teams.TeamMember> channelsMembers, string tenantId, System.Threading.CancellationToken cancellationToken = default);
static member SendMessageToListOfChannelsAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.IActivity * System.Collections.Generic.List<Microsoft.Bot.Schema.Teams.TeamMember> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Shared Function SendMessageToListOfChannelsAsync (turnContext As ITurnContext, activity As IActivity, channelsMembers As List(Of TeamMember), tenantId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

turnContext
ITurnContext

The turn context.

activity
IActivity

The activity to send.

channelsMembers
List<TeamMember>

The list of channels.

tenantId
String

The tenant ID.

cancellationToken
CancellationToken

The cancellation token.

Returns

The operation Id.

Applies to