Forum Discussion
Itay_Nadir
Jan 02, 2025Copper Contributor
Bot in Teams Doesn't Recognize Existing Participants When Joining an Ongoing Call
Hello,
I'm working on a bot for Microsoft Teams, and I've run into an issue with how the bot behaves when joining calls. Here is the specific problem:
var statefulCall = await this.Client.Calls().AddAsync(joinParams, scenarioId).ConfigureAwait(false);If there are already participants in the call, the bot doesn’t recognize them as being present. It seems like it only detects participants who join after the bot is already in the call.
I want the bot to:
- Join the call only after a new participant joins.
- Record that participant for a specific duration (this part is already implemented).
- Leave the call afterward.
Questions:
- Is there a way to make the bot recognize participants already in the call when it joins late?
- Alternatively, is there a mechanism to have the bot trigger its join only when a new participant joins the call?
I am currently monitoring the call state and participant changes using the event handlers, but they don’t seem to reflect participants already in the call at the time of joining.
Any guidance or suggestions on how to resolve this would be greatly appreciated.
Thank you!
No RepliesBe the first to reply