SlackAPI
SlackAPI copied to clipboard
New apps with granular scopes?
As I test I converted one of my apps over to a "new" app, and I'm now unable to connect. According to the documentation:
New bot user API access tokens may not access RTM. For most apps, the Events API lets your app listen to Slack goings-on in a more structured, safe way. If you require access to RTM (say, because you're building your app behind a corporate firewall), obtain a user access token from the OAuth & Permissions page in your app management UI, and use that user token to call rtm.start.
I modified the Connect method to call rtm.start but I'm still getting not_allowed_token_type
. I'm not sure what the docs are talking about when it says get a user token from OAuth & Permissions page - I only have the bot token available there. Anyone know?
Did you ever resolve this?
I haven't looked into this yet
I'm looking into granular scopes right now because a new scope is introduced for bot users to write to any public channel without invitation.
The docs are confusing me, it took a lot of random clicking to finally understand that i need to 'upgrade' my scopes. Thank god i double checked this repo for related material so i know i shouldn't upgrade just yet.
I've switched to the Events API instead.
So, can i use library or rollback app to old type?.. Or what need to do now?