tucnak / telebot

Telebot is a Telegram bot framework in Go.
MIT License
4.04k stars 469 forks source link

api: implement 6.6, 6.7 features #655

Closed Nash-Well closed 8 months ago

demget commented 8 months ago

Previous StickerSet:

type StickerSet struct {
    Type          StickerSetType `json:"sticker_type"`
    Name          string         `json:"name"`
    Title         string         `json:"title"`
    Animated      bool           `json:"is_animated"`
    Video         bool           `json:"is_video"`
    Stickers      []Sticker      `json:"stickers"`
    Thumbnail     *Photo         `json:"thumb"`
    PNG           *File          `json:"png_sticker"`
    TGS           *File          `json:"tgs_sticker"`
    WebM          *File          `json:"webm_sticker"`
    Emojis        string         `json:"emojis"`
    ContainsMasks bool           `json:"contains_masks"` // FIXME: can be removed
    MaskPosition  *MaskPosition  `json:"mask_position"`
}

New StickerSet:

type StickerSet struct {
    Type          StickerSetType `json:"sticker_type"`
    Format        StickerSetFormat `json:"sticker_format"`
    Name          string         `json:"name"`
    Title         string         `json:"title"`
    Animated      bool           `json:"is_animated"`
    Video         bool           `json:"is_video"`
    Stickers      []Sticker      `json:"stickers"`
    Thumbnail     *Photo         `json:"thumb"`
    Emojis        string         `json:"emojis"`
    ContainsMasks bool           `json:"contains_masks"` // FIXME: can be removed
    MaskPosition  *MaskPosition  `json:"mask_position"`
    Repaint       bool           `json:"needs_repainting"`
    Stickers      []Sticker      `json:"stickers"`
}