-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to add bots to DMs/MPDMs #1260
Comments
If you are receiving Can you post all the scopes your app has? |
It is a multi-person direct message. My app has the following scopes:
|
@kranti-rh I see your app uses both user and bot scopes. This means your app will be issued multiple tokens depending on the situation. Are you sure you are using the bot token, which includes the |
yes, i'm using the bot token while calling |
Hmm, hold on.. re-reading what you said initially:
Can you clarify whether your app is a member of the MPDM or not? Are you expecting that the app will be auto-invited into the DM? If the app is NOT a part of the MPDM, then |
Channel membership is a pre-requisite for many conversation APIs. Given the private nature of DM and MPDM conversations, if the user or app whose access token you are using is not a member in these conversations to begin with, then any API that interacts with this conversation will fail or error out (admin tokens are the exception but that is not at play here). This is to ensure privacy and security. |
No, isn't a member of the MPDM. Yes, I expect that the app should be auto-invited into the MPDM like it happens in channels. Could you please confirm if it is possible or not? |
That is NOT the case for DMs or MPDMs. Because of the private nature of these conversations, simply mentioning the app name in a direct message will not auto-invite the app. An end-user has to explicitly invite the bot into a conversations. It may also be possible to open (i.e. start) an MPDM with a bot token via the |
@filmaj Yes, using conversations.open i was able to start a new private conversation but this is not the solution I'm looking for. My problem is with existing conversations, in those how I can add bot application. Being an end-user I'm not able to invite the bot into the existing DMs or MPDMs conversations. |
Yes you are correct. It seems you must create a new conversation explicitly with a bot. |
I dug into this a bit. It seems inviting users to existing DMs/MPDMs is a relatively new feature, and it looks like bots/apps were excluded from the initial implementation of this new feature. I have filed a feature request to extend this ability to apps/bots as well. |
Appreciated @filmaj !!! |
@filmaj I was just wondering to know that how long this thing gonna take to get fixed. |
It is a feature request that is being weighed and prioritized by the relevant team. There is no specific timeline but whenever I hear more I will update this issue. It is best not to have any expectations on a timeline at this moment. |
@filmaj cool! |
@filmaj do we have any update on this? |
I'm @ mentioning the bot app in a direct message channel but it doesn't respond in the same way as it does in the channel where you get a modal asking if you want to invite it. Additionally,
conversations.info
giveschannel_not_found
error for above channel's ID. My bot application configured with all the scopes mentioned here. What I'm doing anything wrong here or it is something that isn't supported as of now in Slack?The text was updated successfully, but these errors were encountered: