aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_conversations_history.pyi10
-rw-r--r--typings/slack_api/slack_conversations_info.pyi3
-rw-r--r--typings/slack_rtm/slack_rtm_message.pyi8
3 files changed, 20 insertions, 1 deletions
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi
index 4b3702a..7443a14 100644
--- a/typings/slack_api/slack_conversations_history.pyi
+++ b/typings/slack_api/slack_conversations_history.pyi
@@ -456,6 +456,15 @@ class SlackMessageSubtypeChannelLeave(SlackMessageCommon):
class SlackMessageSubtypeChannelLeaveFinal(SlackMessageSubtypeChannelLeave):
pass
+class SlackMessageSubtypeChannelTopic(SlackMessageCommon):
+ subtype: Literal["channel_topic"]
+ topic: str
+ user: str
+
+@final
+class SlackMessageSubtypeChannelTopicFinal(SlackMessageSubtypeChannelTopic):
+ pass
+
SlackMessage = (
SlackMessageStandardFinal
| SlackMessageMeFinal
@@ -470,6 +479,7 @@ SlackMessage = (
| SlackMessageSubtypeBotAddFinal
| SlackMessageSubtypeChannelJoinFinal
| SlackMessageSubtypeChannelLeaveFinal
+ | SlackMessageSubtypeChannelTopicFinal
| SlackMessageRtm
)
diff --git a/typings/slack_api/slack_conversations_info.pyi b/typings/slack_api/slack_conversations_info.pyi
index ff42626..7566951 100644
--- a/typings/slack_api/slack_conversations_info.pyi
+++ b/typings/slack_api/slack_conversations_info.pyi
@@ -4,7 +4,7 @@ from typing import Generic, List, TypeVar
from slack_api.slack_common import SlackErrorResponse
from slack_api.slack_conversations_history import SlackMessage
-from typing_extensions import Literal, TypedDict, final
+from typing_extensions import Literal, NotRequired, TypedDict, final
T = TypeVar("T")
@@ -76,6 +76,7 @@ class SlackConversationsInfoIm(SlackConversationsInfoCommon):
unread_count_display: int
is_open: bool
priority: int
+ topic: NotRequired[SlackTopic]
SlackConversationsInfoNotIm = (
SlackConversationsInfoPublic
diff --git a/typings/slack_rtm/slack_rtm_message.pyi b/typings/slack_rtm/slack_rtm_message.pyi
index 709f4a5..efb9e6b 100644
--- a/typings/slack_rtm/slack_rtm_message.pyi
+++ b/typings/slack_rtm/slack_rtm_message.pyi
@@ -7,6 +7,7 @@ from slack_api.slack_conversations_history import (
SlackMessageSubtypeBotRemove,
SlackMessageSubtypeChannelJoin,
SlackMessageSubtypeChannelLeave,
+ SlackMessageSubtypeChannelTopic,
SlackMessageSubtypeHuddleThread,
SlackMessageSubtypeHuddleThreadRoom,
SlackMessageThreadBroadcast,
@@ -87,6 +88,12 @@ class SlackMessageSubtypeChannelLeaveRtm(SlackMessageSubtypeChannelLeave):
channel: str
@final
+class SlackMessageSubtypeChannelTopicRtm(SlackMessageSubtypeChannelTopic):
+ channel: str
+ team: str
+ event_ts: str
+
+@final
class SlackMessageChanged(TypedDict):
type: Literal["message"]
subtype: Literal["message_changed"]
@@ -259,6 +266,7 @@ SlackMessageRtm = (
| SlackMessageSubtypeBotAddRtm
| SlackMessageSubtypeChannelJoinRtm
| SlackMessageSubtypeChannelLeaveRtm
+ | SlackMessageSubtypeChannelTopicRtm
)
SlackRtmMessage = (