Slack POST multiple messages to a channel at once

大兔子大兔子 提交于 2019-11-29 12:39:11

No, there is no bulk variant. So you basically need to build your own bulk message sender.

Keep in mind that there is a request limit of 1 message per second or your API requests will fail.

There also is a 3 seconds request time-out for many requests between Slack and your app. (e.g. for direct response to slash commands). So if your bot needs to send many messages you want to use an approach that allows you to send them asynchronously.

One solution to this problem that works very well for me is to use a messaging queue for all Slack messages sent from my bots.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!