From c53db59f4482a0abb873ce8718abb19ba25d2412 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Fri, 1 Jun 2018 19:18:57 +0300 Subject: [PATCH] json tag --- v1/types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v1/types.go b/v1/types.go index f5e985e..29601f7 100644 --- a/v1/types.go +++ b/v1/types.go @@ -71,10 +71,10 @@ type UpdateMessage struct { // SendData struct type SendData struct { - Message SendMessage `url:"message"` - User User `url:"user"` - Channel uint64 `url:"channel"` - ExternalChatID string `url:"external_chat_id"` + Message SendMessage `url:"message" json:"message"` + User User `url:"user" json:"user"` + Channel uint64 `url:"channel" json:"channel"` + ExternalChatID string `url:"external_chat_id" json:"external_chat_id"` } // UpdateData struct