Skip to content

Commit 2112b8d

Browse files
committed
fix: require markdown_text in chat.appendStream method
1 parent ce0b596 commit 2112b8d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

slack_sdk/web/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,7 @@ async def chat_appendStream(
26252625
*,
26262626
channel: str,
26272627
ts: str,
2628-
markdown_text: Optional[str] = None,
2628+
markdown_text: str,
26292629
**kwargs,
26302630
) -> AsyncSlackResponse:
26312631
"""Appends text to an existing streaming conversation.

slack_sdk/web/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2615,7 +2615,7 @@ def chat_appendStream(
26152615
*,
26162616
channel: str,
26172617
ts: str,
2618-
markdown_text: Optional[str] = None,
2618+
markdown_text: str,
26192619
**kwargs,
26202620
) -> SlackResponse:
26212621
"""Appends text to an existing streaming conversation.

slack_sdk/web/legacy_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2627,7 +2627,7 @@ def chat_appendStream(
26272627
*,
26282628
channel: str,
26292629
ts: str,
2630-
markdown_text: Optional[str] = None,
2630+
markdown_text: str,
26312631
**kwargs,
26322632
) -> Union[Future, SlackResponse]:
26332633
"""Appends text to an existing streaming conversation.

tests/slack_sdk_async/web/test_web_client_coverage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ async def run_method(self, method_name, method, async_method):
541541
self.api_methods_to_call.remove(method(canvas_id="F123", criteria={})["method"])
542542
await async_method(canvas_id="F123", criteria={})
543543
elif method_name == "chat_appendStream":
544-
self.api_methods_to_call.remove(method(channel="C123", ts="123.123")["method"])
545-
await async_method(channel="C123", ts="123.123")
544+
self.api_methods_to_call.remove(method(channel="C123", ts="123.123", markdown_text="**bold**")["method"])
545+
await async_method(channel="C123", ts="123.123", markdown_text="**bold**")
546546
elif method_name == "chat_delete":
547547
self.api_methods_to_call.remove(method(channel="C123", ts="123.123")["method"])
548548
await async_method(channel="C123", ts="123.123")

0 commit comments

Comments
 (0)