Compartilhar via


TeamsInfo.SendMessageToListOfChannelsAsync Método

Definição

Envia uma mensagem para a lista fornecida de canais do Teams.

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)

Parâmetros

turnContext
ITurnContext

O contexto de turno.

activity
IActivity

A atividade a ser enviada.

channelsMembers
List<TeamMember>

A lista de canais.

tenantId
String

A ID do locatário.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

A ID da operação.

Aplica-se a