我一直在引用像 this 这样的文档和 this将主动消息的回复作为线程消息发送。
但是,我只能将每条消息作为独立消息发送,而不能作为回复消息发送。
我很确定该 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/