I built a slackbot for my startup. I would like to trigger things like /poll
. Using client.chat_postMessage
posts rather as plain text without triggering the command. I tried to follow How do you invoke the /poll command using the Slack API?, but of no use since that method doesn't exist anymore.
Asked
Active
Viewed 160 times
0

dhee u
- 1
- 3
1 Answers
0
There are certain types of interaction triggers provided by slack:
- Interactions that happen on a schedule
- Interactions initiated by external services
- Events API pushes
- User invocation
https://api.slack.com/interactivity#triggers
Since you have mentioned about chat.PostMessage
,
you might want to look into Interactivity in Block Kit (User Invokation)
https://api.slack.com/block-kit/interactivity

Suyash Gaur
- 2,481
- 2
- 9
- 22