I'm building a live blogging application that will take all posts on a particular Slack channel and turn them into posts on a CMS using a little nodejs app in between.
Text-based posts are all good using outgoing webhooks – but I can't work out any way to get attachments (images, videos etc) out of Slack.
Their own documentation here says that:
Please note that the content of message attachments will not be included in the outgoing POST data.
But surely there's some way to do it!
I'm fine with writing an app to handle a slash command or similar. Any ideas?
The best practice would be to use Bot-User here. They can easily send images, files, etc out of slack.
With Outgoing-Webhooks sending message attachments will not be possible.
Another way (Not a good way and will not work everytime) can be to include the attachment in a slach command via link. For ex.
/post MESSAGE img1.com
In this way you can post the image along with your message. I would advice to go with bot-user.