From My application sending message in slack using chat.postmessage with a button inside json request. but when user clicks on button from slack it's not returning response on request URL.
https://api.slack.com/messaging/interactivity/enabling#responding_to_interactions
As mentioned here in above link, i have set the structure. set Request URL and also actions with callback id. in my app also set request URL method. i have checked that my application's request URL is working fine.
In attachment parameter passed json as below
[
{
"text": "Are you want to turn of this messages?",
"fallback": "You are unable to turn off",
"callback_id": "turn_off_message",
"attachment_type": "default",
"actions": [
{
"name": "turnoff",
"text": "Turn Off",
"type": "button",
"value": "turnoff"
}
]
}
]
Once user click on Turn Off button, need a response on Request URL which i have set in Interactive Component.
localhostas your endpoint? that would not work. - Erik Kalkoken