Is it possible to post files to Slack using the incoming Webhook?

后端 未结 1 1412
谎友^
谎友^ 2020-12-29 03:26

I am trying out the Slack\'s API using the incoming webhook feature, posting messages works flawlessly, but it doesn\'t seem to allow any file attachments.

Looking t

相关标签:
1条回答
  • 2020-12-29 03:49

    No, its is not possible to upload files through an incoming Webhook. But you can attach image URLs to your attachments with the image_url tag.

    To upload files you need to use the Slack Web API and the files.upload method. Yes, it requires a different authentication, but its not that complicated if you just use a test token for all API calls.

    0 讨论(0)
提交回复
热议问题