Can Teams bot send message to different channels simultaneously

Shu Lin 20 Reputation points
2024-08-17T22:02:35.03+00:00

Can Teams bot send message to different channels simultaneously

I know Teams bot can send message to different channels, such as Teams, Slack, Skype. But, I am wondering if the bot can send messages to those channels at the same time? Will the context.sendActivity(message) function be hooked up with message distribution automatically to different channels at the same time as long as I configure those channels?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,958 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,207 questions
{count} votes

Accepted answer
  1. Andrew Connell 141 Reputation points MVP
    2024-08-18T23:15:07.5133333+00:00

    Sort of... not in one request, but it can iterate across all channels the bot has been installed in and send the message one by one.

    This is a common scenario with what Microsoft calls a notification bot or proactive bot.

    The way it works is the bot connects to the Azure AI Bot Service and obtains a list of all installations where the bot has been installed. It then enumerates the list of installs sending an activity to each one.

    Example: https://github.com/OfficeDev/teams-toolkit-samples/tree/dev/notification-codespaces

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.