button
A text followed by one or more buttons.
Last updated
A text followed by one or more buttons.
Last updated
button(text=String, buttons=Array/Hash, params=Hash)
Platform | Supported | Native Name |
---|---|---|
In either case, the click event will be captured by a postback block (if declared) in the context defined in the payload route.
Below are some unified or built-in parameters from this framework.
typed_postbacks
Regardless of the value of config.typed_postbacks
in the main configuration, this feature can be enabled/disabled independently passing this parameter with true or false.
slice_replies
Only available in Telegram, it allows displaying a defined amount of buttons in rows.
Name | Description |
---|---|
Messenger
Telegram
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.