From Slack support:
For messages posted via the Slack API, we currently only support attaching image files via the slack_file or image block. Alternatively, you could try using remote files to see if that works for you - https://api.slack.com/messaging/files#remote
If remote files doesn't work, your best bet is option 4 to be honest. Sorry for the bad news here.