azure - 使用 Azure Bot 服务在 MS Teams 中以线程响应形式回复消息

标签 azure botframework microsoft-teams azure-bot-service rest

我一直在引用像 this 这样的文档和 this将主动消息的回复作为线程消息发送。

但是,我只能将每条消息作为独立消息发送,而不能作为回复消息发送。

我想要这样的回复: enter image description here

我很确定该 channel 允许回复,因为屏幕截图来自 channel 本身。

我的请求负载: 网址:https://smba.trafficmanager.net/amer/v3/conversations/ {conversationId}/事件/{activityId} 方法:POST

{
  "type": "message",
  "from": {
    "id": "bot-id",
    "name": "bot name"
  },
  "conversation": {
    "id": "19:channelId",
    "name":"random name"
  },
   "recipient": {
        "id": "recepientId",
        "name": "name"
    },
  "text":"I want to reply to threadid",
  "replyToId":"{activityId}"
}

这应该很简单,但我很难找到我做错了什么。如有任何帮助,我们将不胜感激。

最佳答案

我使用了这样的 URL:

https://smba.trafficmanager.net/amer/v3/conversations/{channelId;messageid={activityId}/activities

它就像一个魅力!

关于azure - 使用 Azure Bot 服务在 MS Teams 中以线程响应形式回复消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61970671/

相关文章:

azure - 如何在 DocumentDb .NET SDK 上使用 ReadDocumentFeedAsync?

azure - 用于图像上传的 Service Fabric 方法

azure - 我可以从开发模拟器访问 Azure AppFabric 缓存吗?

azure - 如何在 IIS 上托管 BOT Framework V4 BOT

javascript - DirectLineJS 客户端库

node.js - 自适应卡Action.OpenUrl操作后调用方法/回调

microsoft-teams - list 和 iframe 源中定义的应用程序资源不匹配

javascript - 使用 JS 的 Microsoft Teams 图形 API - 获取组信息

azure - 逻辑应用程序 : Using the "compose" action with an IF statement

node.js - Azure 应用服务突然提供文件目录概述而不是 Angular 应用