Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't send direct message to Slack bot, feature turned off

Tags:

slack

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.

Sending messages to this app has been turned off.

Am I missing some permissions?

Permissions

like image 485
himmip Avatar asked May 24 '21 12:05

himmip


People also ask

Why can't I send a Slack message?

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.

Can Slack bot send direct message to user?

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.

How do I activate Slack bots?

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.

How do I change who can send and accept slack direct messages?

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.

How do I enable slack connect for direct messages in workspace?

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.

How do I start using Slack to send dialogue?

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.

How do I turn off Slack connect for unverified organizations?

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.


2 Answers

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" enter image description here

https://github.com/MicrosoftDocs/bot-docs/issues/2077#issuecomment-843960695

At the bottom you will see the option

enter image description here

like image 171
himmip Avatar answered Nov 29 '22 20:11

himmip


Adding following scope worked for me:

1. mpim:write   -> Start group direct messages with people
2. im:write     -> Start direct messages with people
like image 26
blazehub Avatar answered Nov 29 '22 20:11

blazehub