all repos — telegram-bot-api @ 3ba8237c47b151719152756b24ee5cc0b0281174

Golang bindings for the Telegram Bot API

Fix: missing json tag in UserShared and ChatShared
OvyFlash olegshva4ko@gmail.com
Sat, 11 Feb 2023 19:11:26 +0200
commit

3ba8237c47b151719152756b24ee5cc0b0281174

parent

05cb53ea403848198fca187224e857fcc30e4d46

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M types.gotypes.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