I created a Slack bot (app) and I'm not able to send direct messages to it even though I'm pretty sure I have all the permissions enabled.
The direct message window shows Sending messages to this app has been turned off. in the input field.
Am I missing some permissions?
If Slack won't send your messages, check the service status, restart the app, reboot your Mac and restart your router. Then clear the app cache, and install the latest Slack and macOS updates.
Bot users can't post to a direct message conversation between two users using chat. postMessage . If your app was involved in the conversation, then it would be a multi-person direct message instead.
Add a bot user Create a Slack app if you don't already have one, or select an existing app that you've created. Click on the OAuth & permissions tab in the left sidebar. Below Bot token scopes, select one or more scopes. Then click on Add an OAuth scope.
Workspace Owners can change who has this permission: From your desktop, click your workspace name in the top left. Select Settings & administration from the menu, then click Workspace settings. Next to Slack Connect for direct messages, click Expand. Below Who can send and accept DM invitations?, select an option. Click Save.
Select Settings & administration from the menu, then click Workspace settings. Next to Slack Connect for direct messages, click Expand. Check or uncheck the box next to Enable Slack Connect for direct messages. Click Save. By default, members can send and accept invitations to DMs with people from other companies.
Give your app the gift of dialogue by setting it up to send Slack messages. This guide will help you learn a basic way to accomplish this, and show you the paths you can take to make things complex and interactive. One thing you'll need before starting is a Slack app. If you don't have one yet, here's a very quick guide to help you create one.
Select Settings & administration from the menu, then click Workspace settings. Next to Slack Connect for direct messages, click Expand. Below Allow direct message invitations from unverified organizations, check or uncheck the box next to Enable for Slack Connect. Click Save.
Go to your App Settings page and go to App Home and set the checkbox for "Allow users to send Slash commands and messages from the messages tab"
https://github.com/MicrosoftDocs/bot-docs/issues/2077#issuecomment-843960695
At the bottom you will see the option
Adding following scope worked for me:
1. mpim:write -> Start group direct messages with people
2. im:write -> Start direct messages with people
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With