scrapinghub / slackbot

A chat bot for Slack (https://slack.com).
MIT License
1.26k stars 396 forks source link

How to catch value (callback_id, name, value) from interactive button? #211

Closed tho-can-code closed 4 years ago

tho-can-code commented 4 years ago

I have the buttons

attachments_json = [ { "fallback": "Please choose", "color": "#258ab5", "attachment_type": "default", "callback_id": "callback_id_1111", "actions": [ { "name": "choco1", "text": "Button 1", "value": "test value 1", "type": "button" }, { "name": "choco2", "text": "Button 2", "value": "test value 2", "type": "button" } ] } ]

How can I catch value (callback_id, name, value) when user press into button in Slack? @lins05 @lucywang000