TeamsInfo.SendMeetingNotificationAsync 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 notification to meeting participants. This functionality is available only in teams meeting scoped conversations.
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MeetingNotificationResponse> SendMeetingNotificationAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.Teams.MeetingNotificationBase notification, string meetingId = default, System.Threading.CancellationToken cancellationToken = default);
static member SendMeetingNotificationAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Teams.MeetingNotificationBase * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MeetingNotificationResponse>
Public Shared Function SendMeetingNotificationAsync (turnContext As ITurnContext, notification As MeetingNotificationBase, Optional meetingId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of MeetingNotificationResponse)
Parameters
- turnContext
- ITurnContext
Turn context.
- notification
- MeetingNotificationBase
The notification to send to Teams.
- meetingId
- String
The id of the Teams meeting. TeamsChannelData.Meeting.Id will be used if none provided.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Remarks
InvalidOperationException will be thrown if meetingId or notification have not been provided, and also cannot be retrieved from turnContext.Activity.