my question is whether Slack can Send Direct Message to ALL persons on my group on SLACK (Not group message I want to send an individual message
Asked
Active
Viewed 1,675 times
1 Answers
2
There is no API method for that, but you can create this functionality easily with a small script.
- Get all members of a Slack team incl. their user IDs with
users.list
- Loop through all active users (ignore the ones with
deleted = false
) - Send a direct message to each user with
chat.postMessage
by using their user ID as channel
Be sure though to respect the rate limit of max. 1 message per second or the API will return errors.

Erik Kalkoken
- 30,467
- 8
- 79
- 114
-
how to implement it on the slack , can you explain it , i am new to it – Vivek Kumar Singh Sep 17 '17 at 14:32
-
@VivekKumarSingh sorry, that is beyong this format. But check out the tutorials on Slack. They are pretty good. https://api.slack.com/tutorials – Erik Kalkoken Sep 17 '17 at 15:27