2017-09-23 100 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