'Microsoft Bot Service - How do proactively message multiple people in 1 call - JavaScript
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
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | AP01 |