So I started building my first Slack app. But I am a little confused about how to set it up properly.
Basically I want my app to be able to listen to all messages in a channel that it participates in, and be able to send messages to that space.
I initially just started listening to
messages.channel but I started getting events without my app being added to any channel. I think what might have been going on was that it was seeing all the messages in all the public channels I could see?
I made another attempt by giving by app a Bot user account. Then invited that bot to a channel, and that seemed to work as I was expecting (only getting messages for channels my Bot was in).
Is the above behavior correct? And any other advice for building an app that can listen/post messages to channels it participates in?
Thanks in advance!