webhook 参考文档

Reference doc for webhook

我搜索了关于 https://docs.botframework.com 的所有文档,但找不到有关在 Bot 管理中定义的消息端点上可以接收的内容的文档在哪里。

{
    "text": "yop",
    "type": "message",
    "timestamp": "2017-03-01T07:37:38.509Z",
    "id": "1488353858503",
    "channelId": "skype",
    "serviceUrl": "https://smba.trafficmanager.net/apis/",
    "from": {
        "id": "a",
        "name": "never ever"
    },
    "conversation": {
        "id": "a"
    },
    "recipient": {
        "id": "b",
        "name": "name"
    },
    "entities": [
        {
            "locale": "en-US",
            "platform": "Windows",
            "type": "clientInfo"
        }
    ]
}

例如所有消息类型是什么。你们有没有找到这个文档?请post一个link.

我自己找到了以下 documentation of the enumeration class that contains all the possible types. Also the source code of the class

可以在此处看到 class 层次结构;

其中使用了 IActivity interface looks like the entity you've shared, I found the type field with the above enum class in the implementer of that interface. It looks like the enum class is used in this ActivityEx class, but the name suggests that it might be deprecated, and currently Activity class,尽管它的 type 字段仍然是类型 String。我假设枚举包含 type 的所有值,但可能还有更多。我希望这些信息有用!

我在教程中找到了一些描述:

https://docs.botframework.com/en-us/core-concepts/messages/#navtitle