diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-21 18:32:17 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | f5dc1e5601a441a2378298e7b15490faab904584 (patch) | |
tree | 233ca253648b7d5516bd260157f9ae96706c5c3f /typings | |
parent | f3f97e5cbb97ed7a04bc3e40a110805ff0ae53c8 (diff) | |
download | wee-slack-f5dc1e5601a441a2378298e7b15490faab904584.tar.gz |
Render me/action messages correctly
Diffstat (limited to 'typings')
-rw-r--r-- | typings/slack_api/slack_conversations_history.pyi | 8 | ||||
-rw-r--r-- | typings/slack_rtm/slack_rtm_message.pyi | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi index 8b2118a..ebedc78 100644 --- a/typings/slack_api/slack_conversations_history.pyi +++ b/typings/slack_api/slack_conversations_history.pyi @@ -103,6 +103,13 @@ class SlackMessageStandardCommon(SlackMessageCommon): class SlackMessageStandardFinal(SlackMessageStandardCommon): pass +class SlackMessageMe(SlackMessageStandardCommon): + subtype: Literal["me_message"] + +@final +class SlackMessageMeFinal(SlackMessageMe): + pass + class SlackMessageThreadParentCommon(SlackMessageStandardCommon): thread_ts: str reply_count: int @@ -186,6 +193,7 @@ class SlackMessageSubtypeChannelLeaveFinal(SlackMessageSubtypeChannelLeave): SlackMessage = ( SlackMessageStandardFinal + | SlackMessageMeFinal | SlackMessageThreadParentNotSubscribedFinal | SlackMessageThreadParentSubscribedFinal | SlackMessageWithFilesFinal diff --git a/typings/slack_rtm/slack_rtm_message.pyi b/typings/slack_rtm/slack_rtm_message.pyi index d6840ec..1fae2d6 100644 --- a/typings/slack_rtm/slack_rtm_message.pyi +++ b/typings/slack_rtm/slack_rtm_message.pyi @@ -1,5 +1,6 @@ from slack_api.slack_conversations_history import ( SlackMessage, + SlackMessageMe, SlackMessageStandardCommon, SlackMessageSubtypeBotAdd, SlackMessageSubtypeBotMessage, @@ -24,6 +25,10 @@ class SlackMessageStandardRtm(SlackMessageStandardCommon): channel: str @final +class SlackMessageMeRtm(SlackMessageMe): + channel: str + +@final class SlackMessageThreadParentNotSubscribedRtm(SlackMessageThreadParentNotSubscribed): channel: str @@ -123,6 +128,7 @@ class SlackUserTyping(TypedDict): SlackMessageRtm = ( SlackMessageStandardRtm + | SlackMessageMeRtm | SlackMessageThreadParentNotSubscribedRtm | SlackMessageThreadParentSubscribedRtm | SlackMessageWithFilesRtm |