$reactions.buttons
The function allows you to add buttons to the bot response.
The function gets an object describing the button:
text
— button name;transition
,url
— transition path when clicking on the button.
How to use
script:
$reactions.buttons("One button")
$reactions.buttons(["One button", "And another in the same line"])
$reactions.buttons({button: {text: "Send contact information", request_contact: true}})
$reactions.buttons({text: "Transition button", transition: "/state"})
$reactions.buttons([{text: "Button 1"}, {text: "Button 2", request_contact: true}])