I am trying to use slack API to create a poll functionality. I sent data to slack API URL - 'https://hooks.slack.com/services/TXXXXX/BXXXX/XXXXXX'
I sent post method and params are text: '/poll "Which design is best?" "Round" "Square" "Triangular" anonymous', but it's not working...how to send command in slack API params??
How to create a poll??
const payload = {
text: '/poll "Which design is best?" "Round" "Square" "Triangular" anonymous',
};
axios('https://hooks.slack.com/services/TXXXXX/BXXXX/XXXXXX', {data: JSON.stringify(payload),
method: 'post'})