|
|
|
@ -89,15 +89,16 @@ type ChatPhoto struct { |
|
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|