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

Ottmann, Thomas 20 Reputation points

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

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,003 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
4,119 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,458 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.
2,815 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChetanSharmamsft 1,026 Reputation points Microsoft Vendor

    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