Кирилл Авдеев Кирилл Авдеев - 1 year ago 89
PHP Question

How to set listener on Slack channel?

I need to set listener for Slack channel, which will be listen new messages, and send them to the address by request. Is it possible? Can i do this, if I have http address, non https.

Answer Source

Yes, you can use an outgoing webhook. It will send all messages from a specific channel to an url you specify. Afaik it also works with HTTP, although HTTPS is recommended.

If will only work for public channels though. If you want a "listener" for a private channel, you will need to use a bot. Easiest approach in my opinion would be to use the Events API. Also works with HTTP in my experience, but again that would not be a secure choice.