all repos — telegram-bot-api @ 0c8884bcba9ddda06117b0f91853cc833cc6455e

Golang bindings for the Telegram Bot API

new fields for Chat
MrYadro yadrishnikovyaroslav@gmail.com
Fri, 30 Jun 2017 20:29:59 +0700
commit

0c8884bcba9ddda06117b0f91853cc833cc6455e

parent

b57800c534f6b241f19dc6dfa17a585dcb216598

1 files changed, 8 insertions(+), 0 deletions(-)

jump to
M types.gotypes.go

@@ -81,6 +81,12 @@ ID int `json:"id"`

Title string `json:"title"` } +// ChatPhoto represents a chat photo. +type ChatPhoto struct { + SmallFileID string `json:"small_file_id"` + BigFileID string `json:"big_file_id"` +} + // Chat contains information about the place a message was sent. type Chat struct { ID int64 `json:"id"`

@@ -90,6 +96,8 @@ UserName string `json:"username"` // optional

FirstName string `json:"first_name"` // optional LastName string `json:"last_name"` // optional AllMembersAreAdmins bool `json:"all_members_are_administrators"` // optional + Description string `json:"description,omitempty"` // optional + InviteLink string `json:"invite_link,omitempty"` } // IsPrivate returns if the Chat is a private conversation.