テキスト + 横並びボタン2つを含むカード型メッセージを提示します。
Properties:
Name | Type | Required | Description |
---|---|---|---|
type | String | ○ | "confirm-card" |
title | String | ○ | タイトル |
buttons | Array[Button Object] | ○ | Button Object の配列 要素は2つ |

var confirmCardMessage = {
type: "confirm-card",
title: "質問を終了しますか?",
buttons: [
{
text: "質問を続ける",
action: {
event: {
"event_name": "refuse_finish_conversation_request"
},
message: {
text: "会話を続ける"
}
}
},
{
text: "会話を終了",
action: {
finish: {
event: {event_name: "accept_finish_conversation_request"},
log: {text: "会話を終了しました", icon: "check"},
message: {text: "会話を終了"}
}
},
type: "primary"
}
]
}
var confirmCardMessageJson = JSON.stringify(confirmCardMessage);
chat.send({text: "`" + confirmCardMessageJson + "`"});