diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-12-14 15:09:11 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | aafcb6472607dfae714a025435e1f8081ac8299d (patch) | |
tree | 546f3fabf4faaeca599480a17c3bc701398dd4d7 /slack/slack_api.py | |
parent | 57ad5138dc9bb5aa85ae4f58ee022f2ea2003b5d (diff) | |
download | wee-slack-aafcb6472607dfae714a025435e1f8081ac8299d.tar.gz |
Add command /slack reply
Diffstat (limited to 'slack/slack_api.py')
-rw-r--r-- | slack/slack_api.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |