media: add missed CustomEmoji field to the Sticker (#579)

Co-authored-by: Vladislav Lukianov <vladislav_lukianov@epam.com>
pull/625/head^2
Vlad Lukyanov 6 months ago committed by GitHub
parent 76f1c0eef8
commit 270e53bb90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save