diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-26 21:00:07 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 4b68e8721d18f83c58fea5109da95346363bb9e8 (patch) | |
tree | 540d5bbe9995dd114f0d05d0a024197e9d1e34a1 /typings/slack_api | |
parent | 6722517e91c19cc7c1d39335a1b64020ac7c0b9b (diff) | |
download | wee-slack-4b68e8721d18f83c58fea5109da95346363bb9e8.tar.gz |
Support showing thread replies in the channel
Diffstat (limited to 'typings/slack_api')
-rw-r--r-- | typings/slack_api/slack_conversations_replies.pyi | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/typings/slack_api/slack_conversations_replies.pyi b/typings/slack_api/slack_conversations_replies.pyi new file mode 100644 index 0000000..4e4fd4c --- /dev/null +++ b/typings/slack_api/slack_conversations_replies.pyi @@ -0,0 +1,31 @@ +from typing import List + +from slack_api.slack_common import SlackErrorResponse, SlackResponseMetadata +from slack_api.slack_conversations_history import ( + SlackMessageStandardCommon, + SlackMessageThreadParentNotSubscribedFinal, + SlackMessageThreadParentSubscribedFinal, +) +from typing_extensions import Literal, NotRequired, TypedDict, final + +class SlackMessageThreadCommon(SlackMessageStandardCommon): + thread_ts: str + +@final +class SlackMessageThread(SlackMessageThreadCommon): + parent_user_id: str + +@final +class SlackConversationsRepliesSuccessResponse(TypedDict): + ok: Literal[True] + messages: List[ + SlackMessageThreadParentNotSubscribedFinal + | SlackMessageThreadParentSubscribedFinal + | SlackMessageThread + ] + has_more: bool + response_metadata: NotRequired[SlackResponseMetadata] + +SlackConversationsRepliesResponse = ( + SlackConversationsRepliesSuccessResponse | SlackErrorResponse +) |