TeamsInfo.SendMessageToListOfUsersAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends a message to the provided list of Teams members.
public static System.Threading.Tasks.Task<string> SendMessageToListOfUsersAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.IActivity activity, System.Collections.Generic.List<Microsoft.Bot.Schema.Teams.TeamMember> teamsMembers, string tenantId, System.Threading.CancellationToken cancellationToken = default);
static member SendMessageToListOfUsersAsync : 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 SendMessageToListOfUsersAsync (turnContext As ITurnContext, activity As IActivity, teamsMembers As List(Of TeamMember), tenantId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
- turnContext
- ITurnContext
Turn context.
- activity
- IActivity
The activity to send.
- teamsMembers
- List<TeamMember>
The list of members.
- tenantId
- String
The tenant ID.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The operation Id.