TeamsInfo.SendMessageToAllUsersInTeamAsync 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 all the users in a team.
public static System.Threading.Tasks.Task<string> SendMessageToAllUsersInTeamAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.IActivity activity, string teamId, string tenantId, System.Threading.CancellationToken cancellationToken = default);
static member SendMessageToAllUsersInTeamAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.IActivity * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Shared Function SendMessageToAllUsersInTeamAsync (turnContext As ITurnContext, activity As IActivity, teamId As String, tenantId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
- turnContext
- ITurnContext
The turn context.
- activity
- IActivity
The activity to send to the users in the team.
- teamId
- String
The team ID.
- tenantId
- String
The tenant ID.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The operation Id.