TeamsOperations.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.
Send a message to a list of Teams members.
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<string>> SendMessageToListOfUsersAsync (Microsoft.Bot.Schema.IActivity activity, System.Collections.Generic.List<Microsoft.Bot.Schema.Teams.TeamMember> teamsMembers, string tenantId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
member this.SendMessageToListOfUsersAsync : Microsoft.Bot.Schema.IActivity * System.Collections.Generic.List<Microsoft.Bot.Schema.Teams.TeamMember> * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<string>>
Public Function SendMessageToListOfUsersAsync (activity As IActivity, teamsMembers As List(Of TeamMember), tenantId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of String))
Parameters
- activity
- IActivity
The activity to send.
- teamsMembers
- List<TeamMember>
The list of members.
- tenantId
- String
The tenant ID.
- customHeaders
- Dictionary<String,List<String>>
Headers that will be added to request.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A response object containing the operation id.
Exceptions
Microsoft.Rest.HttpOperationException
Thrown when the operation returned an invalid status code.
Microsoft.Rest.ValidationException
Thrown when an input value does not match the expected data type, range or pattern.