button
A text followed by one or more buttons.
button(text=String, buttons=Array/Hash, params=Hash)
button(text=String, buttons=Array/Hash, params=Hash)
Platforms
Messenger
Telegram
Usage
Reply
On-Demand
Payload formats
To the same context
To a different context
With params
Arguments
text
Required.
The text displayed above the buttons.
buttons
Required. One or several buttons that can be payloads or links in some platforms.
params
Optional. Extra parameters that may vary between platforms.
Extra params
Below are some unified or built-in parameters from this framework.
typed_postbacks
typed_postbacks
slice_replies
slice_replies
Only available in Telegram, it allows displaying a defined amount of buttons in rows.
For more information, read more about the expected params for each platform:
Last updated
Was this helpful?