Skip to content

Commit

Permalink
Fix #1591 by updating the docs to include thread_ts code snippet for …
Browse files Browse the repository at this point in the history
…files_upload_v2
  • Loading branch information
seratch committed Nov 13, 2024
1 parent 813e0f5 commit 6bcf7ec
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/content/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,21 @@ error code).

``` python
response = client.files_upload_v2(
channel="C3UKJTQAC",
file="files.pdf",
file="test.pdf",
title="Test upload",
channel_id="C3UKJTQAC",
initial_comment="Here is the latest version of the file!",
)
```

If you want to share files within a thread, you can pass "thread_ts" in addition to "channel_id" as shown below:

``` python
response = client.files_upload_v2(
file="test.pdf",
title="Test upload",
channel_id="C3UKJTQAC",
thread_ts="1731398999.934122",
initial_comment="Here is the latest version of the file!",
)
```
Expand Down

0 comments on commit 6bcf7ec

Please sign in to comment.