所以我使用了一个帐户并发消息我的skype bot。
我在我的端点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"}
}
我得到了一个未知的对话回复。不确定是什么问题。
答案 0 :(得分:-1)
您的回复应如下所示:
{
"type": "message",
"from": {
"id": "recipient_id",
"name": "recipient_name"
},
"conversation": {
"id": "conversation_id",
"name": "conversation_name(if available)"
},
"recipient": {
"id": "from_id",
"name": "from_name"
},
"text": "response_text",
"replyToId": "activity_id"
}
希望帮助:)