From 272cdaa60cc41f31b324b1ff00320c2a34e3864d Mon Sep 17 00:00:00 2001 From: Vlasov Date: Thu, 30 May 2024 13:21:27 +0300 Subject: [PATCH] Added waiting levels in chat events --- v1/types.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/v1/types.go b/v1/types.go index 2c9aff6..1257837 100644 --- a/v1/types.go +++ b/v1/types.go @@ -89,6 +89,10 @@ const ( ColorOrange = "orange" ColorGray = "gray" ColorGrayishBlue = "grayish-blue" + + WaitingLevelNone = "none" + WaitingLevelWarning = "warning" + WaitingLevelDanger = "danger" ) // MgClient type @@ -605,6 +609,12 @@ type ( LastActivity string `json:"last_activity"` } + WaitingChat struct { + Chat + + WaitingLevel string `json:"waiting_level"` + } + Member struct { IsAuthor bool `json:"is_author"` State string `json:"state"` @@ -723,10 +733,12 @@ type ( Message *Message `json:"message"` } + // Deprecated: Use WsEventWaitingChatCreatedData instead. WsEventChatCreatedData struct { Chat *Chat `json:"chat"` } + // Deprecated: Use WsEventWaitingChatUpdatedData instead. WsEventChatUpdatedData struct { Chat *Chat `json:"chat"` } @@ -785,4 +797,12 @@ type ( WsEventChannelUpdatedData struct { Channel *ChannelResponseItem `json:"channel"` } + + WsEventWaitingChatCreatedData struct { + Chat *WaitingChat `json:"chat"` + } + + WsEventWaitingChatUpdatedData struct { + Chat *WaitingChat `json:"chat"` + } )