|
|
|
@ -42,20 +42,22 @@ type Chat struct {
|
|
|
|
|
Still bool `json:"is_member,omitempty"`
|
|
|
|
|
|
|
|
|
|
// Returns only in getChat
|
|
|
|
|
Bio string `json:"bio,omitempty"`
|
|
|
|
|
Photo *ChatPhoto `json:"photo,omitempty"`
|
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
|
InviteLink string `json:"invite_link,omitempty"`
|
|
|
|
|
PinnedMessage *Message `json:"pinned_message,omitempty"`
|
|
|
|
|
Permissions *Rights `json:"permissions,omitempty"`
|
|
|
|
|
SlowMode int `json:"slow_mode_delay,omitempty"`
|
|
|
|
|
StickerSet string `json:"sticker_set_name,omitempty"`
|
|
|
|
|
CanSetStickerSet bool `json:"can_set_sticker_set,omitempty"`
|
|
|
|
|
LinkedChatID int64 `json:"linked_chat_id,omitempty"`
|
|
|
|
|
ChatLocation *struct {
|
|
|
|
|
Location Location `json:"location,omitempty"`
|
|
|
|
|
Address string `json:"address,omitempty"`
|
|
|
|
|
} `json:"location,omitempty"`
|
|
|
|
|
Bio string `json:"bio,omitempty"`
|
|
|
|
|
Photo *ChatPhoto `json:"photo,omitempty"`
|
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
|
InviteLink string `json:"invite_link,omitempty"`
|
|
|
|
|
PinnedMessage *Message `json:"pinned_message,omitempty"`
|
|
|
|
|
Permissions *Rights `json:"permissions,omitempty"`
|
|
|
|
|
SlowMode int `json:"slow_mode_delay,omitempty"`
|
|
|
|
|
StickerSet string `json:"sticker_set_name,omitempty"`
|
|
|
|
|
CanSetStickerSet bool `json:"can_set_sticker_set,omitempty"`
|
|
|
|
|
LinkedChatID int64 `json:"linked_chat_id,omitempty"`
|
|
|
|
|
ChatLocation *ChatLocation `json:"location,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ChatLocation struct {
|
|
|
|
|
Location Location `json:"location,omitempty"`
|
|
|
|
|
Address string `json:"address,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ChatPhoto object represents a chat photo.
|
|
|
|
@ -78,10 +80,10 @@ func (c *Chat) Recipient() string {
|
|
|
|
|
type ChatMember struct {
|
|
|
|
|
Rights
|
|
|
|
|
|
|
|
|
|
User *User `json:"user"`
|
|
|
|
|
Role MemberStatus `json:"status"`
|
|
|
|
|
Title string `json:"custom_title"`
|
|
|
|
|
IsAnonymous bool `json:"is_anonymous"`
|
|
|
|
|
User *User `json:"user"`
|
|
|
|
|
Role MemberStatus `json:"status"`
|
|
|
|
|
Title string `json:"custom_title"`
|
|
|
|
|
Anonymous bool `json:"is_anonymous"`
|
|
|
|
|
|
|
|
|
|
// Date when restrictions will be lifted for the user, unix time.
|
|
|
|
|
//
|
|
|
|
|