zoukankan      html  css  js  c++  java
  • BotFramework学习-02

    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
  • 相关阅读:
    Anderson《空气动力学基础》5th读书笔记 第0记——白金汉PI定理
    108、将有序数组转换为二叉搜索树
    104、二叉树的最大深度
    237、删除链表中的节点
    1480、一维数组的动态和
    伪类与伪元素的由来及区别
    617、合并二叉树
    CDN
    JS DOM编程艺术 | 笔记
    HTML进阶
  • 原文地址:https://www.cnblogs.com/vitas/p/5430552.html
Copyright © 2011-2022 走看看