Skip to content

Commit 6bcf7ec

Browse files
committed
Fix #1591 by updating the docs to include thread_ts code snippet for files_upload_v2
1 parent 813e0f5 commit 6bcf7ec

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

docs/content/web.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,21 @@ error code).
256256

257257
``` python
258258
response = client.files_upload_v2(
259-
channel="C3UKJTQAC",
260-
file="files.pdf",
259+
file="test.pdf",
261260
title="Test upload",
261+
channel_id="C3UKJTQAC",
262+
initial_comment="Here is the latest version of the file!",
263+
)
264+
```
265+
266+
If you want to share files within a thread, you can pass "thread_ts" in addition to "channel_id" as shown below:
267+
268+
``` python
269+
response = client.files_upload_v2(
270+
file="test.pdf",
271+
title="Test upload",
272+
channel_id="C3UKJTQAC",
273+
thread_ts="1731398999.934122",
262274
initial_comment="Here is the latest version of the file!",
263275
)
264276
```

0 commit comments

Comments
 (0)