Skip to content

Commit 85f8f4b

Browse files
fix: channel_id instead of channel in files_upload_v2 documentation (#1670)
1 parent 897449a commit 85f8f4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/content/tutorial/uploading-files.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ By doing this, you'll be able to see the file within Slack.
182182

183183
### Specifying a channel when uploading a file {#specifying-channel}
184184

185-
While this exercise was very informative, having to do these two steps every time we upload a file is a bit cumbersome. Instead, we can specify the `channel_id` parameter to the function. This is the more common way of uploading a file from an app.
185+
While this exercise was very informative, having to do these two steps every time we upload a file is a bit cumbersome. Instead, we can specify the `channel` parameter to the function. This is the more common way of uploading a file from an app.
186186

187187
```python
188188
upload_and_then_share_file = client.files_upload_v2(
189-
channel_id="C123456789",
189+
channel="C123456789",
190190
title="Test text data",
191191
filename="test.txt",
192192
content="Hi there! This is a text file!",
@@ -210,7 +210,7 @@ Next, within the same directory, execute the following code. We'll specify the f
210210

211211
```python
212212
upload_text_file = client.files_upload_v2(
213-
channel_id="C123456789",
213+
channel="C123456789",
214214
title="Test text data",
215215
file="./test.txt",
216216
initial_comment="Here is the file:",

0 commit comments

Comments
 (0)