I am using SlackAPIPostOperator from an Airflow Dag. And have successfully made a bot that will send messages to my Slack Channel
However, when I use the same logic on a Private channel it wouldn't work. And I couldn't see my bot to be able to 'invite' it to the channel.
To fix this ...
channels:join
and channels:read
OAuth scopes. Here’s how you can check and modify your bot’s scopes:- Go to the Slack API website and navigate to the “OAuth & Permissions” section of your app’s settings.
- Scroll down to the “Scopes” section and check that your bot has the
channels:join
andchannels:read
scopes. - If the scopes are not already added, click on the “Add an OAuth Scope” button and select the scopes from the dropdown list.
- After adding the scopes, make sure to re-install your app in the workspace to apply the changes.