How to send message to Slack listening channels? -
i working on slack app (scope including bot , incoming webhooks). can send message defined channel don't know how stop using "&channel=" parameter , send messages listening channels. listening mean, when app installed, user asked post (channel or dm has chosen).
string posturl = "https://slack.com/api/chat.postmessage?token=" + botaccesstoken + "&as_user=false&channel=%23community&text=testing&username=communityq"; any hints useful.
i think can't: according official slack api documentation not possible send messages all/multiple listening channels:
incoming webhooks output default channel , can send messages single channel @ time. can override custom integration's configured channel specifying channel field in json payload.
i interpret "there exactly one channel message sent to"
furthermore, slack restricts channel override feature slack apps:
you cannot override default username, icon, or channel incoming webhooks attached slack apps.
Comments
Post a Comment