diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-14 19:52:44 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 291ce07645f63614b3b00fbe20063d6ef0161bef (patch) | |
tree | f6b2d0f7412f1f3ac2c02d8c2ab2957d1dc338fa /slack/slack_workspace.py | |
parent | 184bf08360003538179e3c19b2711016c823eadd (diff) | |
download | wee-slack-291ce07645f63614b3b00fbe20063d6ef0161bef.tar.gz |
Support sending messages
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 286f5c7..0f9ddfb 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -445,16 +445,9 @@ class SlackWorkspace: if self._ws is None: raise SlackError(self, "is_connected is True while _ws is None") - if isinstance(buffer, SlackConversation): - conversation_id = buffer.id - elif isinstance(buffer, SlackThread): - conversation_id = buffer.parent.conversation.id - else: - raise NotImplementedError(f"Unknown buffer type: {type(buffer)}") - msg = { "type": "user_typing", - "channel": conversation_id, + "channel": buffer.conversation.id, } if isinstance(buffer, SlackThread): msg["thread_ts"] = buffer.parent.ts |