Microsoft Bot Service - How do proactively message multiple people in 1 call - JavaScript

Viewed 57

I'm trying to send the same proactive message to many users within my organization. We are working with a Microsoft Teams bot, built with JavaScript.

We're currently looping through the users, grabbing their conversation reference, then proactively messaging each user 1 at a time.

We are sending the same proactive message to these users, so I'm looking for a way to send this message to a list of users with 1 call

We're currently using the 'continueConversation' function to proactively message users

1 Answers

To my knowledge, getting a conversation reference for everyone who has previously messaged your bot and looping through while sending a message to each is the currently accepted method of implementing proactive messaging to all users.

For reference, the docs on proactive notifications and the javascript proactive bot sample.

Related