How do I send a reply after selecting a button?

(Ruslan) #1

Good day!
In a telegram to Botha, in a user query, the code buttons:
{
“chat_id”: “{{bot_new_message.channel_id}}”,
“text”: “lalalallaalala.”,
“reply_markup”: {
“one_time_keyboard”: true,
“resize_keyboard”: true,
“selective”: true,
“keyboard”: [
[
{“text”: “lalala 1.”}
],
[
{“text”: “lalalala 2.”}
],
[
{“text”: “kakakaa 3”}
]
]
}
}

The user selects the button - how to send him a message ?

(Karen Barker) #2

Hi @Facepo0k

When you use a custom request like this for telegram the value of the button text that the user clicks is classed as a keyword trigger for another flow. As soon as the user clicks a button the system will look for a flow trigger which matches. If it finds one then we will launch that flow and run through any logic set up in the flow. If no flow is found matching the keyword then if a catchall trigger exists this will run or otherwise we will send the bot welcome message. I hope this helps. :slight_smile: