0

尝试制作 REST API Skype 机器人,但建议的操作消息有问题。我用这样的代码准备 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 文本,没有任何按钮。我在拧什么?

4

1 回答 1

1

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

在此处输入图像描述

于 2017-09-25T10:47:40.343 回答