Is it possible to use a file path instead of url as `image_url` when sending a message via Slack API or Incoming Webhook?
问题 Let's assume I have the following block which I want to send via Incoming Webhook to Slack { "type": "image", "title": { "type": "plain_text", "text": "foo bar" }, "image_url": "https://api.slack.com/img/blocks/example/beagle.png", "alt_text": "foo" } but instead of providing a http url as image_url I would like to provide a file path because the file I want to send is in the same folder as my script. 1) Is this possible? I guess no. 2) Is it possible to upload an image via files.upload in a