quick_reply
A text message followed by one or more buttons that disappear after being clicked.
quick_reply(text=String, buttons=Array/Hash, params=Hash)
quick_reply(text=String, buttons=Array/Hash, params=Hash)Platforms
Platform
Supported
Native Name
Usage
Can be called as reply or On-Demand, for this example we'll use @reply inside the conversation.
@reply.quick_reply(
"Hello, how can I help today?",
[
{
title: "Create an account",
payload: "profile/create_account"
},
{
title: "Read TOS",
payload: "read_tos"
},
{
title: "Feature Product",
payload: set_payload("products/view", { product_id: 10 })
}
]
)Payload formats
To the same context
To a different context
With params
Arguments
Name
Description
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_postbacksRegardless 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
slice_repliesOnly available in Telegram, it allows displaying a defined amount of buttons in rows.
Last updated
Was this helpful?