使用 Azure 机器人服务在 MS Teams 中以线程响应的形式回复消息
Reply to message as threaded response in MS Teams using Azure Bot Sevices
我一直在参考 this and this 之类的文档,以将对主动消息的回复作为线程消息发送。
但是,我只能将每条消息作为独立消息发送,而不能作为回复消息发送。
我想要这样的回复:
我很确定频道允许回复,因为屏幕截图来自频道本身。
我的请求负载:
URL:https://smba.trafficmanager.net/amer/v3/conversations/{conversationId}/activities/{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
而且效果非常好!
我一直在参考 this and this 之类的文档,以将对主动消息的回复作为线程消息发送。
但是,我只能将每条消息作为独立消息发送,而不能作为回复消息发送。
我想要这样的回复:
我很确定频道允许回复,因为屏幕截图来自频道本身。
我的请求负载: URL:https://smba.trafficmanager.net/amer/v3/conversations/{conversationId}/activities/{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
而且效果非常好!