all repos — telegram-bot-api @ e404d8bf5e706c521788ab59082f289a3afb551e

Golang bindings for the Telegram Bot API

Merge pull request #586 from iamwavecut/master

add: new sticker types properties
Syfaro syfaro@huefox.com
Wed, 19 Oct 2022 20:27:39 -0400
commit

e404d8bf5e706c521788ab59082f289a3afb551e

parent

6a9b3dc5e341b8f78f9299f8c6322c935a16044f

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