From 4156b2bccf149f9de1282fb52c3d07d19e240337 Mon Sep 17 00:00:00 2001 From: OvyFlash Date: Tue, 14 Feb 2023 22:36:09 +0200 Subject: [PATCH] Fix: add json tag to fields ChatID and UserID in structs ChatShared and UserShared --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index bf3d62d..97fce22 100644 --- a/types.go +++ b/types.go @@ -1337,7 +1337,7 @@ type UserShared struct { // RequestID is an indentifier of the request. RequestID int `json:"request_id"` // UserID in an identifier of the shared user. - UserID int64 + UserID int64 `json:"user_id"` } // ChatShared contains information about the chat whose identifier @@ -1346,7 +1346,7 @@ type ChatShared struct { // RequestID is an indentifier of the request. RequestID int `json:"request_id"` // ChatID is an identifier of the shared chat. - ChatID int64 + ChatID int64 `json:"chat_id"` } // WriteAccessAllowed represents a service message about a user