I found this line in docs https://docs.mattermost.com/developer/bot-accounts.html.
- Add the bot account to teams and channels you want it to interact in.
But when I go to add my bot into a channel, there are only users.
When I create a new bot, the bot said
Please add me to teams and channels you want me to interact in., but there isn’t any button below this message.
According to the docs
Bot accounts can be enabled to post to any channel in the system by System Administrators, including a private team, private channel or a Direct Message channel.
Once created, bot accounts behave just like regular user accounts and can be added to teams and channels similar to users.
My bot is a System Administrator so it can’t direct message on any channels, but my bot build in
mmpy_bot only work on Direct Message, and won’t reply the messages on any other channels.