aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-08-29 00:48:16 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit26f15a4a1572f529ff628df4e03dcd51da8f765a (patch)
treecf7000501158af93a9bbc6ab8eab13a0d08252f3 /typings
parentd6c04af249f3782c9f1e8241e5d76f023a94d992 (diff)
downloadwee-slack-26f15a4a1572f529ff628df4e03dcd51da8f765a.tar.gz
Show prefix for thread broadcast messages
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_conversations_history.pyi8
-rw-r--r--typings/slack_api/slack_conversations_replies.pyi2
2 files changed, 10 insertions, 0 deletions
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi
index bf81c15..944d367 100644
--- a/typings/slack_api/slack_conversations_history.pyi
+++ b/typings/slack_api/slack_conversations_history.pyi
@@ -3,6 +3,7 @@ from __future__ import annotations
from typing import Dict, List
from slack_api.slack_common import SlackErrorResponse
+from slack_api.slack_conversations_replies import SlackMessageThreadCommon
from slack_rtm.slack_rtm_message import SlackMessageRtm
from typing_extensions import Literal, NotRequired, TypedDict, final
@@ -331,6 +332,12 @@ class SlackMessageThreadParentSubscribed(SlackMessageThreadParentCommon):
class SlackMessageThreadParentSubscribedFinal(SlackMessageThreadParentSubscribed):
pass
+@final
+class SlackMessageThreadBroadcast(SlackMessageThreadCommon):
+ subtype: Literal["thread_broadcast"]
+ root: SlackMessageThreadParentCommon
+ # TODO: team is missing in response
+
class SlackMessageWithFiles(SlackMessageCommon):
user: str
files: List[SlackMessageFile]
@@ -439,6 +446,7 @@ SlackMessage = (
| SlackMessageThreadParentCommon
| SlackMessageThreadParentNotSubscribedFinal
| SlackMessageThreadParentSubscribedFinal
+ | SlackMessageThreadBroadcast
| SlackMessageWithFilesFinal
| SlackMessageSubtypeHuddleThreadFinal
| SlackMessageSubtypeBotMessageFinal
diff --git a/typings/slack_api/slack_conversations_replies.pyi b/typings/slack_api/slack_conversations_replies.pyi
index 4e4fd4c..fd6ff0c 100644
--- a/typings/slack_api/slack_conversations_replies.pyi
+++ b/typings/slack_api/slack_conversations_replies.pyi
@@ -3,6 +3,7 @@ from typing import List
from slack_api.slack_common import SlackErrorResponse, SlackResponseMetadata
from slack_api.slack_conversations_history import (
SlackMessageStandardCommon,
+ SlackMessageThreadBroadcast,
SlackMessageThreadParentNotSubscribedFinal,
SlackMessageThreadParentSubscribedFinal,
)
@@ -21,6 +22,7 @@ class SlackConversationsRepliesSuccessResponse(TypedDict):
messages: List[
SlackMessageThreadParentNotSubscribedFinal
| SlackMessageThreadParentSubscribedFinal
+ | SlackMessageThreadBroadcast
| SlackMessageThread
]
has_more: bool