2017-09-23 17 views
0

REST API skype botを作成しようとしましたが、推奨されるアクションメッセージに問題があります。 私はこのようなコードでJSONを準備:REST API SkypeBotの推奨アクション

$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 
    ]; 

そして、私が送った後 - 私は、任意のボタンwihout、スカイプでテキストのみを取得します。 私は何をしていますか?

答えて

1

Channel Inspectorに基づいて、SkypeのSuggested Actionsはカードのコンテキストでのみ利用可能であるようです。

enter image description here

関連する問題