38 lines
1.5 KiB
Go
38 lines
1.5 KiB
Go
package models
|
|
|
|
// MaskPosition https://core.telegram.org/bots/api#maskposition
|
|
type MaskPosition struct {
|
|
Point string `json:"point"`
|
|
XShift float64 `json:"x_shift"`
|
|
YShift float64 `json:"y_shift"`
|
|
Scale float64 `json:"scale"`
|
|
}
|
|
|
|
// Sticker https://core.telegram.org/bots/api#sticker
|
|
type Sticker struct {
|
|
FileID string `json:"file_id"`
|
|
FileUniqueID string `json:"file_unique_id"`
|
|
Type string `json:"type"`
|
|
Width int `json:"width"`
|
|
Height int `json:"height"`
|
|
IsAnimated bool `json:"is_animated"`
|
|
IsVideo bool `json:"is_video"`
|
|
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
|
|
Emoji string `json:"emoji,omitempty"`
|
|
SetName string `json:"set_name,omitempty"`
|
|
PremiumAnimation *File `json:"premium_animation,omitempty"`
|
|
MaskPosition MaskPosition `json:"mask_position,omitempty"`
|
|
CustomEmojiID string `json:"custom_emoji_id"`
|
|
NeedsRepainting bool `json:"needs_repainting,omitempty"`
|
|
FileSize int `json:"file_size,omitempty"`
|
|
}
|
|
|
|
// InputSticker https://core.telegram.org/bots/api#inputsticker
|
|
type InputSticker struct {
|
|
Sticker InputFile `json:"sticker"`
|
|
Format string `json:"format"`
|
|
EmojiList []string `json:"emoji_list"`
|
|
MaskPosition MaskPosition `json:"mask_position,omitempty"`
|
|
Keywords []string `json:"keywords,omitempty"`
|
|
}
|