Skip to content

Commit

Permalink
media: add premium_animation to the Sticker
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Oct 5, 2022
1 parent b16c14c commit 69399c1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions media.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,15 @@ func (v *VideoNote) MediaFile() *File {
// Sticker object represents a WebP image, so-called sticker.
type Sticker struct {
File
Width int `json:"width"`
Height int `json:"height"`
Animated bool `json:"is_animated"`
Video bool `json:"is_video"`
Thumbnail *Photo `json:"thumb"`
Emoji string `json:"emoji"`
SetName string `json:"set_name"`
MaskPosition *MaskPosition `json:"mask_position"`
Width int `json:"width"`
Height int `json:"height"`
Animated bool `json:"is_animated"`
Video bool `json:"is_video"`
Thumbnail *Photo `json:"thumb"`
Emoji string `json:"emoji"`
SetName string `json:"set_name"`
MaskPosition *MaskPosition `json:"mask_position"`
PremiumAnimation *File `json:"premium_animation"`
}

func (s *Sticker) MediaType() string {
Expand Down

0 comments on commit 69399c1

Please sign in to comment.