【发布时间】:2017-01-13 18:07:02
【问题描述】:
所以我使用了一个帐户并向我的 Skype 机器人发送消息。
我在我的端点 url 上得到这个 json 响应。我发了一条短信“添加”
{"text":"add"
,"type":"message"
,"timestamp":"2017-01-13T15:38:32.242Z"
,"id":"1234567"
,"channelId":"skype"
,"serviceUrl":"https:\/\/smba.trafficmanager.net\/apis\/"
,"from":{"id":"29:yyyy","name":"Real Person"}
,"conversation":{"id":"29:yyyy"}
,"recipient":{"id":"28:xxxx","name":"Skype Test"}
}
当我使用 yyyy 作为 conversationId 返回此网址时
POST /v3/directline/conversations/{conversationId}/activities https://directline.botframework.com/v3/directline/conversations/yyyy/activities
使用这个参数:
{
"type": "message",
"text": "registration",
"from": {
"id":"xxxx","name":"Skype Test"
},
"recipient": {"id":"yyyy","name":"Real Person"}
}
我收到一个未知的对话回复。不知道出了什么问题。
【问题讨论】:
-
您究竟是如何获得对话 ID 的?您是否使用 POST 到 directline.botframework.com/v3/directline/conversations 来获得一个?
标签: botframework skype skypedeveloper direct-line-botframework