Skip to content

Commit

Permalink
api_types: Add SubmessageEvent TypedDict.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsashank authored and Ajnus committed Nov 14, 2024
1 parent 7190535 commit d52da74
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions zulipterminal/api_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,15 @@ class RealmUserEvent(TypedDict):
person: RealmUserEventPerson


class SubmessageEvent(TypedDict):
type: Literal["submessage"]
msg_type: str
message_id: int
submessage_id: int
sender_id: int
content: str


# -----------------------------------------------------------------------------
# See https://zulip.com/api/get-events#subscription-update
# (also -peer_add and -peer_remove; FIXME: -add & -remove are not yet supported)
Expand Down Expand Up @@ -619,6 +628,7 @@ class UpdateDisplaySettingsEvent(TypedDict):
UpdateMessageContentEvent,
UpdateMessagesLocationEvent,
ReactionEvent,
SubmessageEvent,
SubscriptionUpdateEvent,
SubscriptionPeerAddRemoveEvent,
TypingEvent,
Expand Down

0 comments on commit d52da74

Please sign in to comment.