all repos — telegram-bot-api @ 7b50c107fbef6c71232a345defa0352c2c1fdfd5

Golang bindings for the Telegram Bot API

add: new sticker types properties
iamwavecut wavecutdnb@gmail.com
Sun, 25 Sep 2022 14:50:54 +0200
commit

7b50c107fbef6c71232a345defa0352c2c1fdfd5

parent

537c005643adee10686fa7d9bb860dec33a535d4

1 files changed, 16 insertions(+), 0 deletions(-)

jump to
M types.gotypes.go

@@ -1986,6 +1986,10 @@ // IsAnimated true, if the sticker is animated

// // optional IsAnimated bool `json:"is_animated,omitempty"` + // IsVideo true, if the sticker is a video sticker + // + // optional + IsVideo bool `json:"is_video,omitempty"` // Thumbnail sticker thumbnail in the .WEBP or .JPG format // // optional

@@ -1998,11 +2002,19 @@ // SetName of the sticker set to which the sticker belongs

// // optional SetName string `json:"set_name,omitempty"` + // PremiumAnimation for premium regular stickers, premium animation for the sticker + // + // optional + PremiumAnimation *File `json:"premium_animation,omitempty"` // MaskPosition is for mask stickers, the position where the mask should be // placed // // optional MaskPosition *MaskPosition `json:"mask_position,omitempty"` + // CustomEmojiID for custom emoji stickers, unique identifier of the custom emoji + // + // optional + CustomEmojiID string `json:"custom_emoji_id,omitempty"` // FileSize // // optional

@@ -2015,8 +2027,12 @@ // Name sticker set name

Name string `json:"name"` // Title sticker set title Title string `json:"title"` + // StickerType of stickers in the set, currently one of “regular”, “mask”, “custom_emoji” + StickerType string `json:"sticker_type"` // IsAnimated true, if the sticker set contains animated stickers IsAnimated bool `json:"is_animated"` + // IsVideo true, if the sticker set contains video stickers + IsVideo bool `json:"is_video"` // ContainsMasks true, if the sticker set contains masks ContainsMasks bool `json:"contains_masks"` // Stickers list of all set stickers