Microsoft Bot 服务 - 如何在一次通话中主动向多人发送消息 - JavaScript

发布于 2025-01-10 06:49:14 字数 231 浏览 4 评论 0原文

我正在尝试向组织内的许多用户发送相同的主动消息。我们正在使用使用 JavaScript 构建的 Microsoft Teams 机器人。

我们目前正在循环访问用户,获取他们的对话参考,然后一次主动向每个用户发送消息 1。

我们正在向这些用户发送相同的主动消息,因此我正在寻找一种方法,通过 1 个呼叫将此消息发送给用户列表

我们目前正在使用“ContinueConversation”功能主动向用户发送消息

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧瑾黎汐 2025-01-17 06:49:14

据我所知,为之前向您的机器人发送过消息的每个人获取对话参考,并在向每个人发送消息时进行循环,是目前接受的向所有用户实施主动消息传递的方法。

作为参考,有关主动通知的文档javascript 主动机器人示例

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文