microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Samples/Samples.Meetings/README.md
51lines · modecode
| 1 | ## Meetings Sample |
| 2 | |
| 3 | This sample demonstrates how to handle real-time updates for meeting events and meeting participant events. |
| 4 | |
| 5 | ### Manifest Requirements |
| 6 | |
| 7 | There are a few requirements in the Teams app manifest (manifest.json) to support these events. |
| 8 | |
| 9 | 1) The `scopes` section must include `team`, and `groupChat`: |
| 10 | |
| 11 | ```csharp |
| 12 | "bots": [ |
| 13 | { |
| 14 | "botId": "", |
| 15 | "scopes": [ |
| 16 | "team", |
| 17 | "personal", |
| 18 | "groupChat" |
| 19 | ], |
| 20 | "isNotificationOnly": false |
| 21 | } |
| 22 | ] |
| 23 | ``` |
| 24 | |
| 25 | 2) In the authorization section, make sure to specify the following resource-specific permissions: |
| 26 | |
| 27 | ```csharp |
| 28 | "authorization":{ |
| 29 | "permissions":{ |
| 30 | "resourceSpecific":[ |
| 31 | { |
| 32 | "name":"OnlineMeetingParticipant.Read.Chat", |
| 33 | "type":"Application" |
| 34 | }, |
| 35 | { |
| 36 | "name":"ChannelMeeting.ReadBasic.Group", |
| 37 | "type":"Application" |
| 38 | }, |
| 39 | { |
| 40 | "name":"OnlineMeeting.ReadBasic.Chat", |
| 41 | "type":"Application" |
| 42 | } |
| 43 | ] |
| 44 | } |
| 45 | } |
| 46 | ``` |
| 47 | |
| 48 | ### Teams Developer Portal: Bot Configuration |
| 49 | |
| 50 | For your Bot, make sure the [Meeting Event Subscriptions](https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/meeting-apps-apis?branch=pr-en-us-8455&tabs=channel-meeting%2Cguest-user%2Cone-on-one-call%2Cdotnet3%2Cdotnet2%2Cdotnet%2Cparticipant-join-event%2Cparticipant-join-event1#receive-meeting-participant-events) are checked. |
| 51 | This enables you to receive the Meeting Participant events. |