The Authentication documentation talks about the authorize function needing to return both a botUserId and a botId. The first is easily obtained from the OAuth flow, but the second is a bit of a mystery. The concept of a _Bot ID_ cannot be found of slack.dev - google search for both botId and bot_id return nothing useful.
Can this please be clarified in the documentation?
x in one of the [ ])x in each of the [ ])I'm closing this because I think I figured this out.
Can you share your answer?
During oauth flow, we can get botUserId and botAccessToken via the method oauth.access.
Use the token to request users.info of that bot, i.e, pass the botUserId as the user argument. You can find botId at the property of the response at user.profile.bot_id.
Most helpful comment
Can you share your answer?