botkube
botkube copied to clipboard
Replace discontinued `files.upload` API in Slack platforms
Overview
The files.upload web API method that we use to upload a long messages (e.g. logs) will be discontinued.
To prepare for this change, we recommend migrating away from files.upload and instead using the combination of files.getUploadURLExternal and files.completeUploadExternal. More information on how to use these two APIs together can be found on our Uploading files documentation. You can also leverage Slack’s SDKs to help you transition to this new way of uploading files by visiting our api.slack page.
Acceptance Criteria
- [ ] Update Slack platforms to use new API
- Probably we need to contribute/fork/extend the library:
- https://github.com/slack-go/slack/issues/1288
- https://github.com/slack-go/slack/issues/1287
Reason
Support for the files.upload
API will be discontinued on March 11, 2025.
The issue is more critical than we thought initially. The cloud version of our application will work fine until sunset on March 11, 2025.
However, all new applications created after May 16, 2024 are no longer able to use this API method. This means that our Socket Slack lacks the file upload feature for all new users since May 16, 2024.
cc @brampling
This is currently blocked / parked until either Slack fixes their API or we're forced to require files:read
permissions scope for our bot app.
See this slack thread for more details about the issue with Slack API.