From aafcb6472607dfae714a025435e1f8081ac8299d Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 14 Dec 2023 15:09:11 +0100 Subject: Add command /slack reply --- slack/slack_api.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'slack/slack_api.py') diff --git a/slack/slack_api.py b/slack/slack_api.py index 7ce919f..0f315a8 100644 --- a/slack/slack_api.py +++ b/slack/slack_api.py @@ -333,6 +333,7 @@ class SlackApi(SlackApiCommon): conversation: SlackConversation, text: str, thread_ts: Optional[SlackTs] = None, + broadcast: bool = False, ): method = "chat.postMessage" params: Params = { @@ -343,6 +344,7 @@ class SlackApi(SlackApiCommon): } if thread_ts is not None: params["thread_ts"] = thread_ts + params["reply_broadcast"] = broadcast response: SlackGenericResponse = await self._fetch(method, params) if response["ok"] is False: raise SlackApiError(self.workspace, method, response, params) -- cgit