I think you’ll need more than one button.
To do this, you can use the built-in functions map
and get
—
{{ get(object or array; path) }}
e.g.: (paste this into the field)
You selected: "{{first(map(get(22.callback_query.message.reply_markup; "inline_keyboard.1"); "text"; "callback_data"; 22.callback_query.data))}}".
Button data: "{{22.callback_query.data}}"
Example
Here is an example of how your scenario could look:
This is just an example. Your final solution may or may not look like this depending on your requirements and actual input data.
Input
Output
For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.