You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload files with [sequenced API calls](https://api.slack.com/messaging/files#uploading_files).
177
175
178
176
This library provides a helper method `files_upload_v2` that wraps the three separate API calls.
@@ -192,8 +190,7 @@ client.files_upload_v2(
192
190
thread_ts:'1738331487.481469'# specifies a thread to add this file to
193
191
)
194
192
```
195
-
196
-
###### Legacy Method
193
+
Note: This library includes a `files_upload` method that uses a deprecated endpoint `files.upload` that will [no longer be supported on 3/11/2025](https://api.slack.com/methods/files.upload#markdown).
197
194
198
195
```ruby
199
196
client.files_upload(
@@ -206,8 +203,6 @@ client.files_upload(
206
203
)
207
204
```
208
205
209
-
The client.files_upload uses a deprecated endpoint `files.upload` that will [no longer be supported on 3/11/2025](https://api.slack.com/methods/files.upload#markdown).
210
-
211
206
##### Get Channel Info
212
207
213
208
You can use a channel ID or name (prefixed with `#`) in all functions that take a `:channel` argument. Lookup by name is not supported by the Slack API and the `channels_id` method called invokes `conversations_list` in order to locate the channel ID. This invocation can have a cost if you have many Slack channels. In this scenario, we encourage you to use channel id.
0 commit comments