From f3ea71113820db21be72074b4d6d541382122302 Mon Sep 17 00:00:00 2001 From: Vragov Roman Date: Wed, 2 Nov 2022 18:44:47 +0300 Subject: [PATCH] Add `UsersResponseItem` field to the `Available` struct --- v1/types.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/v1/types.go b/v1/types.go index c73a464..776200c 100644 --- a/v1/types.go +++ b/v1/types.go @@ -264,7 +264,9 @@ type ( CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at,omitempty"` RevokedAt string `json:"revoked_at,omitempty"` + Available bool `json:"available"` IsOnline bool `json:"is_online"` + Connected bool `json:"connected"` IsActive bool `json:"is_active"` IsTechnicalAccount bool `json:"is_technical_account"` Avatar string `json:"avatar_url,omitempty"` @@ -726,8 +728,9 @@ type ( } WsEventUserOnlineUpdatedData struct { - User *UserRef `json:"user"` - Online bool `json:"online"` + User *UserRef `json:"user"` + Online bool `json:"online"` + Connected bool `json:"connected"` } WsEventChatsDeletedData struct {