aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-10-15 14:15:50 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commitf8fc75bc34565364591515eb8c87cacc8ddeb35f (patch)
treeb7512baa50c0becfd863217fbca37bbd1dbb7bfd /typings
parentcbef2d00b12ea4b72b382508ff9b044e96f44f4a (diff)
downloadwee-slack-f8fc75bc34565364591515eb8c87cacc8ddeb35f.tar.gz
Add tests for attachments and fix rendering bugs
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_conversations_history.pyi13
1 files changed, 12 insertions, 1 deletions
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi
index 6799f02..4b3702a 100644
--- a/typings/slack_api/slack_conversations_history.pyi
+++ b/typings/slack_api/slack_conversations_history.pyi
@@ -224,7 +224,7 @@ SlackMessageBlock = (
)
@final
-class SlackMessageAttachment(TypedDict):
+class SlackMessageAttachmentStandard(TypedDict):
from_url: str
image_url: str
image_width: int
@@ -241,6 +241,17 @@ class SlackMessageAttachment(TypedDict):
footer: str
@final
+class SlackMessageAttachmentMsgUnfurl(TypedDict):
+ is_msg_unfurl: Literal[True]
+ channel_id: str
+ footer: str
+ # incomplete
+
+SlackMessageAttachment = (
+ SlackMessageAttachmentStandard | SlackMessageAttachmentMsgUnfurl
+)
+
+@final
class SlackMessageReaction(TypedDict):
name: str
users: List[str]