码迷,mamicode.com
首页 > 其他好文 > 详细

BotFramework学习-02

时间:2016-04-25 14:58:58      阅读:239      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!