-
Notifications
You must be signed in to change notification settings - Fork 42
/
sticker.go
37 lines (34 loc) · 1.46 KB
/
sticker.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"`
}