Jan 16 2024 11:10 AM - edited Jan 16 2024 11:11 AM
Hi,
We have made a teams bot using nodejs that we uploaded to teams as an app. We would like the bot to listen for events during meetings, but it is not receiving any events relating to meetings. We are using the TeamsActivityHandler to listen for these events. For example, we have been trying:
this.onTeamsMeetingStartEvent(async (meeting, context, next) => {
return this.handleMeetingStart(meeting, context, next);
});
Here is the manifest:
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json",
"version": "1.0.0",
"manifestVersion": "1.16",
"id": {id},
"packageName": "com.microsoft.teams.extension",
"name": {
"short": "Querious Development",
"full": ""
},
"developer": {
"name": "name example",
"websiteUrl": "https://www.example.com",
"privacyUrl": "https://www.example.com",
"termsOfUseUrl": "https://www.example.com/privacy"
},
"description": {
"short": "A Short Description",
"full": "Assists in calls"
},
"icons": {
"outline": "outline.png",
"color": "color.png"
},
"accentColor": "#FFFFFF",
"staticTabs": [
{
"entityId": "conversations",
"scopes": [
"personal"
]
},
{
"entityId": "about",
"scopes": [
"personal"
]
}
],
"bots": [
{
"botId": {bot id},
"scopes": [
"personal",
"team",
"groupChat"
],
"isNotificationOnly": false,
"supportsCalling": true,
"supportsVideo": true,
"supportsFiles": false
}
],
"composeExtensions": [
{
"botId": {bot id},
"commands": [],
"canUpdateConfiguration": false
}
],
"validDomains": [],
"devicePermissions": [
"notifications",
"media"
],
"meetingExtensionDefinition": {
"scenes": [],
"supportsStreaming": true,
"supportsAnonymousGuestUsers": true
},
"authorization": {
"permissions": {
"resourceSpecific": [
{
"name": "ChatMessage.Read.Chat",
"type": "Application"
},
{
"name": "ChatMessage.Send.Chat",
"type": "Application"
},
{
"name": "TeamsActivity.Send.User",
"type": "Application"
},
{
"name": "MicrophoneStream.Read.User",
"type": "Delegated"
},
{
"name": "ChannelMeetingAudioVideo.Stream.Group",
"type": "Delegated"
},
{
"name": "ChannelMeetingIncomingAudio.Detect.Group",
"type": "Delegated"
},
{
"name": "Calls.AccessMedia.Chat",
"type": "Application"
},
{
"name": "Calls.JoinGroupCalls.Chat",
"type": "Application"
},
{
"name": "TeamsActivity.Send.Chat",
"type": "Application"
},
{
"name": "OnlineMeetingAudioVideo.Stream.Chat",
"type": "Delegated"
},
{
"name": "OnlineMeetingIncomingAudio.Detect.Chat",
"type": "Delegated"
},
{
"name": "OnlineMeetingParticipant.ToggleIncomingAudio.Chat",
"type": "Delegated"
}
]
}
}
}
Jan 16 2024 10:21 PM
@kryan2000 - Could you please let us know the sample which you set up for this or any sample code snippet or document file you followed?
Jan 18 2024 06:30 AM
@kryan2000 - Could you please let us know the sample which you set up for this or any sample code snippet or document file you followed?
Jan 23 2024 02:21 PM
Hi, This sample was setup from the vscode teams plugin that generate a bot for you.
I have also tried to setup a few times using the samples from https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples
Events are routed to the messaging endpoint, but it seems to be only events that are in teams outside the scope of an active meeting.
The events we are interested in is once a meeting is started and events happen in the meeting. All those don't even arrive at the codebase. (ngrok logging does not show calls coming in to the messaging endpoint.)
I have tried setting up a bot from the MS Teams Admin portal (https://dev.teams.microsoft.com/) as well as setting up an Azure Bot in Azure, both seem to have the same behavior.
Any further insight would be appreciated!
Eugene
Jan 29 2024 02:07 AM
@elrdevilliers - We tried to repro this using below sample but are getting meeting events.
Could you please refer below sample which demonstrates how a bot can receive real-time meeting events: Microsoft-Teams-Samples/samples/meetings-events at main · OfficeDev/Microsoft-Teams-Samples (github....?
Jan 29 2024 11:35 AM
Jan 29 2024 09:31 PM
@elrdevilliers - Glad to hear that it worked.
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
Jan 29 2024 10:35 PM