2017-09-23 70 views
0

試圖製作REST API skype機器人但存在建議操作消息的問題。 我的代碼編寫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 
    ]; 

我送後 - 我得到了Skype的純文本,wihout任何按鈕。 我在幹什麼?

回答

1

基於Channel Inspector,似乎Skype中的Suggested Actions僅適用於卡片環境。

enter image description here