Reputation: 33
According to the Slack API, if you provide a valid link to an image_url, that image will be displayed. I've tried this with the message builder here but no image is ever displayed. I also tried this using cURL, and once again the image doesn't display. Any idea how to get the image to display? This is for use in creating a bot to send notifications through an incoming webhook. Thanks!
Image of JSON and corresponding message preview:
Upvotes: 1
Views: 2410
Reputation: 32757
They seam to be two problems with your example.
You can not use both image and thumb together in the same attachment. If you want to use both in your message, just create another attachment.
When using imgur you need to use the direct image link, not the imgur page link.
Here is a working example.
Upvotes: 1