slackhq / slack-api-docs

API Docs for Slack.com
https://api.slack.com/
426 stars 85 forks source link

chat.postMessage can return restricted_action error #85

Open jcbwlkr opened 6 years ago

jcbwlkr commented 6 years ago

Hi, friends!

I spent quite a while trying to track down why my bot was suddenly failing to send a message to a private group when it had previously worked. It turned out that the message included an @channel and our slack admins had recently restricted who can do that. I couldn't figure it out because that error was not listed on the chat.postMessage page.