Skip to content

Commit

Permalink
media: add missed CustomEmoji field to the Sticker (tucnak#579)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladislav Lukianov <[email protected]>
  • Loading branch information
vlad-lukyanov and Vladislav Lukianov authored Nov 19, 2023
1 parent 76f1c0e commit 270e53b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions media.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,17 @@ 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"`
PremiumAnimation *File `json:"premium_animation"`
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"`
Type StickerSetType `json:"type"`
CustomEmoji string `json:"custom_emoji_id,omitempty"`
}

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

0 comments on commit 270e53b

Please sign in to comment.