all repos — telegram-bot-api @ 32f5ed843320de1232590ca007db71a5db20e3cb

Golang bindings for the Telegram Bot API

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

32f5ed843320de1232590ca007db71a5db20e3cb

parent

0c8884bcba9ddda06117b0f91853cc833cc6455e

1 files changed, 10 insertions(+), 9 deletions(-)

jump to
M types.gotypes.go

@@ -89,15 +89,16 @@ }

// Chat contains information about the place a message was sent. type Chat struct { - ID int64 `json:"id"` - Type string `json:"type"` - Title string `json:"title"` // optional - 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"` + ID int64 `json:"id"` + Type string `json:"type"` + Title string `json:"title"` // optional + 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 + Photo *ChatPhoto `json:"photo"` + Description string `json:"description,omitempty"` // optional + InviteLink string `json:"invite_link,omitempty"` // optional } // IsPrivate returns if the Chat is a private conversation.