postback
Captures a click event that contains one or more payloads configured.
postback(payload=String|Array, &block)
postback(payload=String|Array, &block)Platforms
Platform
Supported
Usage
class MainContext < Conversation
def blocks
postback "get_started" do
@reply.text("Hello!")
@reply.quick_reply(
"Is it clear to you how postbacks work?",
[
{
title: "Of course!",
payload: "yes"
},
{
title: "Not really π€·π»ββοΈ",
payload: "no"
}
]
)
end
postback "yes" do
@reply.text "Awesome!"
@reply.text "We've put a lot of effort into writing this documentation πͺ"
end
postback "no" do
@reply.text "No problem, continue reading and you will got it..."
end
end
endReading params
any_postback block
any_postback blockUsage
Last updated
Was this helpful?