diff --git a/object/groups.go b/object/groups.go index 75d2f634..38d1c2db 100644 --- a/object/groups.go +++ b/object/groups.go @@ -217,6 +217,7 @@ type GroupsGroup struct { PublicDateLabel string `json:"public_date_label,omitempty"` AuthorID int `json:"author_id,omitempty"` Phone string `json:"phone,omitempty"` + Like GroupsGroupLike `json:"like"` } // ToMention return mention. @@ -224,6 +225,18 @@ func (group GroupsGroup) ToMention() string { return fmt.Sprintf("[club%d|%s]", group.ID, group.Name) } +// GroupsGroupLike struct. +type GroupsGroupLike struct { + IsLiked BaseBoolInt `json:"is_liked"` + Friends GroupsGroupLikeFriends `json:"friends"` +} + +// GroupsGroupLikeFriends struct. +type GroupsGroupLikeFriends struct { + Count int `json:"count"` + Preview []int `json:"preview"` +} + // GroupsLiveCovers struct. type GroupsLiveCovers struct { IsEnabled BaseBoolInt `json:"is_enabled"`