You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose you have slackIDs of your users in your database and you need to send a message to several of them BUT simultaneously to one channel (no matter if it is created or not), instead of sending a direct message to each of them separately.
We can implement a special conversations method that will return the name of an existing channel using the Slack API or create it automatically with the set of users passed as a parameter to this method.
Inside the SlackTransport::doSend method, if this option was set earlier, an additional request to the Slack API will be executed in the response, which will contain the name of the target channel, which will be stored in the array of options by the recipient_id key.
Description
Suppose you have slackIDs of your users in your database and you need to send a message to several of them BUT simultaneously to one channel (no matter if it is created or not), instead of sending a direct message to each of them separately.
We can implement a special
conversations
method that will return the name of an existing channel using the Slack API or create it automatically with the set of users passed as a parameter to this method.Inside the SlackTransport::doSend method, if this option was set earlier, an additional request to the Slack API will be executed in the response, which will contain the name of the target channel, which will be stored in the array of options by the
recipient_id
key.API Details: https://api.slack.com/methods/conversations.open
Request:
Response:
Example
The text was updated successfully, but these errors were encountered: