首页 > 其他 > 详细

BotFramework学习-02

时间:2016-04-25 14:56:55      阅读:144      评论:0      收藏:0      [点我收藏+]

1、请求的Message格式

技术分享
{
  "type": "Message",
  "id": "fd89606f8014453ca5587e2961b7a72c",
  "conversationId": "8a684db8",
  "created": "2016-04-25T05:00:25.5292748Z",
  "language": "en",
  "text": "谔谔",
  "attachments": [],
  "from": {
    "name": "User1",
    "channelId": "emulator",
    "address": "User1",
    "id": "2c1c7fa3",
    "isBot": false
  },
  "to": {
    "name": "YourAppId",
    "channelId": "emulator",
    "address": "YourAppId",
    "id": "YourAppId",
    "isBot": true
  },
  "participants": [
    {
      "name": "User1",
      "channelId": "emulator",
      "address": "User1",
      "id": "2c1c7fa3",
      "isBot": false
    },
    {
      "name": "YourAppId",
      "channelId": "emulator",
      "address": "YourAppId",
      "id": "YourAppId",
      "isBot": true
    }
  ],
  "totalParticipants": 2,
  "mentions": [],
  "channelMessageId": "f8f664370cef47ce821bfce9e90a13a5",
  "channelConversationId": "Conv1",
  "hashtags": []
}
View Code

2、ReplyMessage格式:

技术分享
{
  "conversationId": "8a684db8",
  "language": "en",
  "text": "You sent 2 characters",
  "from": {
    "name": "YourAppId",
    "channelId": "emulator",
    "address": "YourAppId",
    "isBot": true
  },
  "to": {
    "name": "User1",
    "channelId": "emulator",
    "address": "User1",
    "isBot": false
  },
  "replyToMessageId": "fd89606f8014453ca5587e2961b7a72c",
  "participants": [
    {
      "name": "User1",
      "channelId": "emulator",
      "address": "User1"
    },
    {
      "name": "YourAppId",
      "channelId": "emulator",
      "address": "YourAppId"
    }
  ],
  "totalParticipants": 2,
  "channelMessageId": "f8f664370cef47ce821bfce9e90a13a5",
  "channelConversationId": "Conv1"
}
View Code

 

BotFramework学习-02

原文:http://www.cnblogs.com/vitas/p/5430552.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!