Dela via


TeamsInfo.SendMessageToListOfChannelsAsync Metod

Definition

Skickar ett meddelande till den angivna listan över Teams-kanaler.

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)

Parametrar

turnContext
ITurnContext

Turkontexten.

activity
IActivity

Aktiviteten som ska skickas.

channelsMembers
List<TeamMember>

Listan över kanaler.

tenantId
String

Klientorganisations-ID:t.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Åtgärds-ID:t.

Gäller för