all repos — telegram-bot-api @ 79b26b07c5c454d625961b1691a80e7e9b7e945a

Golang bindings for the Telegram Bot API

Merge pull request #97 from MrYadro/minor

Minor changes from 3.0 API update
Syfaro syfaro@foxpaw.in
Sat, 03 Jun 2017 18:02:18 -0500
commit

79b26b07c5c454d625961b1691a80e7e9b7e945a

parent

c341d9cd919e20668726186866845e507ff3eb0d

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

jump to
M types.gotypes.go

@@ -144,7 +144,7 @@ Caption string `json:"caption"` // optional

Contact *Contact `json:"contact"` // optional Location *Location `json:"location"` // optional Venue *Venue `json:"venue"` // optional - NewChatMember *User `json:"new_chat_member"` // optional + NewChatMembers *[]User `json:"new_chat_members"` // optional LeftChatMember *User `json:"left_chat_member"` // optional NewChatTitle string `json:"new_chat_title"` // optional NewChatPhoto *[]PhotoSize `json:"new_chat_photo"` // optional

@@ -509,6 +509,7 @@ ID string `json:"id"` // required

URL string `json:"gif_url"` // required Width int `json:"gif_width"` Height int `json:"gif_height"` + Duration int `json:"gif_duration"` ThumbURL string `json:"thumb_url"` Title string `json:"title"` Caption string `json:"caption"`

@@ -523,6 +524,7 @@ ID string `json:"id"` // required

URL string `json:"mpeg4_url"` // required Width int `json:"mpeg4_width"` Height int `json:"mpeg4_height"` + Duration int `json:"mpeg4_duration"` ThumbURL string `json:"thumb_url"` Title string `json:"title"` Caption string `json:"caption"`