Automatic joining of a Teams-Bot to an ongoing Teams meeting

Ottmann, Thomas 20 Reputation points
2024-02-20T15:39:17.47+00:00

I am facing the challenge of having a C# Teams bot automatically join an ongoing Teams meeting. My goal is to retrieve call information about the participants of the meeting in order to be able to process this data further. It is important to note that I do not want to add the bot manually.

After reviewing the bot samples, I have not yet been able to find a solution for my needs. Is there any sample code in the existing bot samples that is specifically suitable for this use case? If so, I would be very grateful for a hint or link to it.

I am currently using the method "OnTeamsMembersAddedAsync" to retrieve information about the participants. I have successfully tested this implementation and it works as expected. Note: This works fine when i add the bot manually with Teams Toolkit.

I want my bot to run as a background service in Azure that automatically joins a 1:1 call as soon as an unscheduled call takes place. In this way, I want to ensure that my program can reliably read out the required information.

I would be very grateful for your help and any tips.

Many thanks in advance.

Best regards
Thomas

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,629 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,404 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,447 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,065 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChetanSharmamsft 1,026 Reputation points Microsoft Vendor
    2024-02-21T11:12:15.59+00:00

    Hello @Ottmann, Thomas - We do not have a way to automatically add the bot in 1:1 call but you can do like below:
    You can Install a teamsApp to the specified chat. If the chat is associated with an onlineMeeting instance, then, effectively, the teamsApp will get installed to the meeting.


0 additional answers

Sort by: Most helpful