From c8dd10b6f1e2ca77ab09d8e9f9f6b88fcde033fb Mon Sep 17 00:00:00 2001
From: Michael Brooks
Date: Mon, 29 Sep 2025 16:32:56 -0700
Subject: [PATCH 1/2] fix(web-client): update thread_ts arg to be required for
chat_startStream method
---
slack_sdk/web/async_client.py | 2 +-
slack_sdk/web/client.py | 2 +-
slack_sdk/web/legacy_client.py | 2 +-
tests/slack_sdk_async/web/test_web_client_coverage.py | 8 ++++----
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py
index 84a490920..5b4a474ac 100644
--- a/slack_sdk/web/async_client.py
+++ b/slack_sdk/web/async_client.py
@@ -2878,7 +2878,7 @@ async def chat_startStream(
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
diff --git a/slack_sdk/web/client.py b/slack_sdk/web/client.py
index cdce5f975..fa9683b13 100644
--- a/slack_sdk/web/client.py
+++ b/slack_sdk/web/client.py
@@ -2868,7 +2868,7 @@ def chat_startStream(
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
diff --git a/slack_sdk/web/legacy_client.py b/slack_sdk/web/legacy_client.py
index 10d2c7afb..558598806 100644
--- a/slack_sdk/web/legacy_client.py
+++ b/slack_sdk/web/legacy_client.py
@@ -2880,7 +2880,7 @@ def chat_startStream(
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
diff --git a/tests/slack_sdk_async/web/test_web_client_coverage.py b/tests/slack_sdk_async/web/test_web_client_coverage.py
index d7451dd7d..998c0bb3e 100644
--- a/tests/slack_sdk_async/web/test_web_client_coverage.py
+++ b/tests/slack_sdk_async/web/test_web_client_coverage.py
@@ -568,10 +568,10 @@ async def run_method(self, method_name, method, async_method):
self.api_methods_to_call.remove(method()["method"])
await async_method()
elif method_name == "chat_startStream":
- self.api_methods_to_call.remove(method(channel="C123")["method"])
- method(channel="C123", recipient_team_id="T123", recipient_user_id="U123")
- await async_method(channel="C123")
- await async_method(channel="C123", recipient_team_id="T123", recipient_user_id="U123")
+ self.api_methods_to_call.remove(method(channel="C123", thread_ts="123.123")["method"])
+ await async_method(channel="C123", thread_ts="123.123")
+ method(channel="C123", thread_ts="123.123", recipient_team_id="T123", recipient_user_id="U123")
+ await async_method(channel="C123", thread_ts="123.123", recipient_team_id="T123", recipient_user_id="U123")
elif method_name == "chat_stopStream":
self.api_methods_to_call.remove(
method(channel="C123", ts="123.123", blocks=[{"type": "markdown", "text": "**twelve**"}])["method"]
From fc9b73a607c52fb059b9d30e645dd638983a16ac Mon Sep 17 00:00:00 2001
From: Michael Brooks
Date: Mon, 29 Sep 2025 16:54:18 -0700
Subject: [PATCH 2/2] docs(web-client): generate docs
---
docs/reference/index.html | 6 +++---
docs/reference/oauth/installation_store/file/index.html | 2 +-
docs/reference/oauth/installation_store/index.html | 2 +-
docs/reference/oauth/state_store/file/index.html | 2 +-
docs/reference/oauth/state_store/index.html | 2 +-
docs/reference/web/async_client.html | 6 +++---
docs/reference/web/client.html | 6 +++---
docs/reference/web/index.html | 6 +++---
docs/reference/web/legacy_client.html | 6 +++---
9 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/docs/reference/index.html b/docs/reference/index.html
index 76ca5c1c4..03a1800e4 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -3004,7 +3004,7 @@
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
@@ -10268,7 +10268,7 @@ Methods
https://api.slack.com/methods/chat.scheduledMessages.list
-def chat_startStream(self,
*,
channel: str,
thread_ts: str | None = None,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> SlackResponse
+def chat_startStream(self,
*,
channel: str,
thread_ts: str,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> SlackResponse
@@ -10279,7 +10279,7 @@ Methods
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
diff --git a/docs/reference/oauth/installation_store/file/index.html b/docs/reference/oauth/installation_store/file/index.html
index 7658ddd96..1091d3575 100644
--- a/docs/reference/oauth/installation_store/file/index.html
+++ b/docs/reference/oauth/installation_store/file/index.html
@@ -48,7 +48,7 @@
class FileInstallationStore
-(*,
base_dir: str = '/Users/eden.zimbelman/.bolt-app-installation',
historical_data_enabled: bool = True,
client_id: str | None = None,
logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)
+(*,
base_dir: str = '/Users/michael.brooks/.bolt-app-installation',
historical_data_enabled: bool = True,
client_id: str | None = None,
logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)
-
diff --git a/docs/reference/oauth/installation_store/index.html b/docs/reference/oauth/installation_store/index.html
index 5865522cf..aece243e9 100644
--- a/docs/reference/oauth/installation_store/index.html
+++ b/docs/reference/oauth/installation_store/index.html
@@ -327,7 +327,7 @@ Methods
class FileInstallationStore
-(*,
base_dir: str = '/Users/eden.zimbelman/.bolt-app-installation',
historical_data_enabled: bool = True,
client_id: str | None = None,
logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)
+(*,
base_dir: str = '/Users/michael.brooks/.bolt-app-installation',
historical_data_enabled: bool = True,
client_id: str | None = None,
logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)
-
diff --git a/docs/reference/oauth/state_store/file/index.html b/docs/reference/oauth/state_store/file/index.html
index 33ac16d82..d91be8db7 100644
--- a/docs/reference/oauth/state_store/file/index.html
+++ b/docs/reference/oauth/state_store/file/index.html
@@ -48,7 +48,7 @@
class FileOAuthStateStore
-(*,
expiration_seconds: int,
base_dir: str = '/Users/eden.zimbelman/.bolt-app-oauth-state',
client_id: str | None = None,
logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
+(*,
expiration_seconds: int,
base_dir: str = '/Users/michael.brooks/.bolt-app-oauth-state',
client_id: str | None = None,
logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
-
diff --git a/docs/reference/oauth/state_store/index.html b/docs/reference/oauth/state_store/index.html
index efb7d1cfe..a2f5a251e 100644
--- a/docs/reference/oauth/state_store/index.html
+++ b/docs/reference/oauth/state_store/index.html
@@ -77,7 +77,7 @@
class FileOAuthStateStore
-(*,
expiration_seconds: int,
base_dir: str = '/Users/eden.zimbelman/.bolt-app-oauth-state',
client_id: str | None = None,
logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
+(*,
expiration_seconds: int,
base_dir: str = '/Users/michael.brooks/.bolt-app-oauth-state',
client_id: str | None = None,
logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
-
diff --git a/docs/reference/web/async_client.html b/docs/reference/web/async_client.html
index e87f65501..a75296b83 100644
--- a/docs/reference/web/async_client.html
+++ b/docs/reference/web/async_client.html
@@ -2900,7 +2900,7 @@
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
@@ -10164,7 +10164,7 @@ Methods
https://api.slack.com/methods/chat.scheduledMessages.list
-async def chat_startStream(self,
*,
channel: str,
thread_ts: str | None = None,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> AsyncSlackResponse
+async def chat_startStream(self,
*,
channel: str,
thread_ts: str,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> AsyncSlackResponse
-
@@ -10175,7 +10175,7 @@ Methods
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
diff --git a/docs/reference/web/client.html b/docs/reference/web/client.html
index a6c282b42..b2d44f9ee 100644
--- a/docs/reference/web/client.html
+++ b/docs/reference/web/client.html
@@ -2900,7 +2900,7 @@
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
@@ -10164,7 +10164,7 @@ Methods
https://api.slack.com/methods/chat.scheduledMessages.list
-def chat_startStream(self,
*,
channel: str,
thread_ts: str | None = None,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> SlackResponse
+def chat_startStream(self,
*,
channel: str,
thread_ts: str,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> SlackResponse
-
@@ -10175,7 +10175,7 @@ Methods
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
diff --git a/docs/reference/web/index.html b/docs/reference/web/index.html
index 1e49e8dda..17315ee92 100644
--- a/docs/reference/web/index.html
+++ b/docs/reference/web/index.html
@@ -3261,7 +3261,7 @@ Raises
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
@@ -10525,7 +10525,7 @@ Methods
https://api.slack.com/methods/chat.scheduledMessages.list
-def chat_startStream(self,
*,
channel: str,
thread_ts: str | None = None,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> SlackResponse
+def chat_startStream(self,
*,
channel: str,
thread_ts: str,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> SlackResponse
-
@@ -10536,7 +10536,7 @@ Methods
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
diff --git a/docs/reference/web/legacy_client.html b/docs/reference/web/legacy_client.html
index 1cc442667..ad9ae4b96 100644
--- a/docs/reference/web/legacy_client.html
+++ b/docs/reference/web/legacy_client.html
@@ -2899,7 +2899,7 @@
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,
@@ -10163,7 +10163,7 @@ Methods
https://api.slack.com/methods/chat.scheduledMessages.list
-def chat_startStream(self,
*,
channel: str,
thread_ts: str | None = None,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> _asyncio.Future | LegacySlackResponse
+def chat_startStream(self,
*,
channel: str,
thread_ts: str,
markdown_text: str | None = None,
recipient_team_id: str | None = None,
recipient_user_id: str | None = None,
unfurl_links: bool | None = None,
unfurl_media: bool | None = None,
**kwargs) ‑> _asyncio.Future | LegacySlackResponse
-
@@ -10174,7 +10174,7 @@ Methods
self,
*,
channel: str,
- thread_ts: Optional[str] = None,
+ thread_ts: str,
markdown_text: Optional[str] = None,
recipient_team_id: Optional[str] = None,
recipient_user_id: Optional[str] = None,