Skip to content

Commit 7b50c10

Browse files
committed
add: new sticker types properties
1 parent 537c005 commit 7b50c10

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

types.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,6 +1986,10 @@ type Sticker struct {
19861986
//
19871987
// optional
19881988
IsAnimated bool `json:"is_animated,omitempty"`
1989+
// IsVideo true, if the sticker is a video sticker
1990+
//
1991+
// optional
1992+
IsVideo bool `json:"is_video,omitempty"`
19891993
// Thumbnail sticker thumbnail in the .WEBP or .JPG format
19901994
//
19911995
// optional
@@ -1998,11 +2002,19 @@ type Sticker struct {
19982002
//
19992003
// optional
20002004
SetName string `json:"set_name,omitempty"`
2005+
// PremiumAnimation for premium regular stickers, premium animation for the sticker
2006+
//
2007+
// optional
2008+
PremiumAnimation *File `json:"premium_animation,omitempty"`
20012009
// MaskPosition is for mask stickers, the position where the mask should be
20022010
// placed
20032011
//
20042012
// optional
20052013
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
2014+
// CustomEmojiID for custom emoji stickers, unique identifier of the custom emoji
2015+
//
2016+
// optional
2017+
CustomEmojiID string `json:"custom_emoji_id,omitempty"`
20062018
// FileSize
20072019
//
20082020
// optional
@@ -2015,8 +2027,12 @@ type StickerSet struct {
20152027
Name string `json:"name"`
20162028
// Title sticker set title
20172029
Title string `json:"title"`
2030+
// StickerType of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
2031+
StickerType string `json:"sticker_type"`
20182032
// IsAnimated true, if the sticker set contains animated stickers
20192033
IsAnimated bool `json:"is_animated"`
2034+
// IsVideo true, if the sticker set contains video stickers
2035+
IsVideo bool `json:"is_video"`
20202036
// ContainsMasks true, if the sticker set contains masks
20212037
ContainsMasks bool `json:"contains_masks"`
20222038
// Stickers list of all set stickers

0 commit comments

Comments
 (0)