new fields for Chat

bot-api-6.1
MrYadro 2017-06-30 20:29:59 +07:00
parent b57800c534
commit 0c8884bcba
No known key found for this signature in database
GPG Key ID: F46CD4085B2F9482
1 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,12 @@ type GroupChat struct {
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 @@ type Chat struct {
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.