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.
Just in case someone still has problems with that. You just need to read the docs:
To authorize your bot via RESTful API use curl -i -H 'authorization: Bearer <Access Token>'http://localhost:8065/api/v4/users/me . Access Token is not the Token ID and won’t be visible again once created.
After doing that you can click on the Team and “invite people”. The Bot should show up there. Add it to the team and it will then be available in the list of users that you can invite to private channels etc.