REST API SkypeBot建议采取措施

时间:2017-09-23 18:27:02

标签: php botframework skype skype-bots

尝试制作REST API skype bot,但建议的操作消息有问题。 我用这样的代码准备JSON:

$message = [
        "type" => "message",
        "from" => [
            "id" => $clientid,
        ],
        "conversation" => [
            "id" => $chatid,
        ],
        "recipient" => [
          "id" => $chatid,
        ],
        "text" => "Color",
        "inputHint" => "expectingInput",
        "suggestedActions" => [
            "to" => [ $reptoid ],
            "actions" => [
                [
                    "type" => "imBack",
                    "title" => "Blue",
                    "value" => "Blue"
                ],
                [
                    "type" => "imBack",
                    "title" => "Green",
                    "value" => "Green"
                ],
            ],
        ],
        "replyToId" => $replyid
    ];

在我发送之后 - 我只用Skype输入文字,没有任何按钮。 我在做什么呢?

1 个答案:

答案 0 :(得分:1)

根据Channel Inspector,似乎Skype中的Suggested Actions仅在卡片的上下文中可用。

enter image description here