-
Notifications
You must be signed in to change notification settings - Fork 1
/
stickers.go
39 lines (36 loc) · 1.4 KB
/
stickers.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
38
39
package telegram
// Sticker represents a sticker.
//
// https://core.telegram.org/bots/api#sticker
type Sticker struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Width int `json:"width"`
Height int `json:"height"`
IsAnimated bool `json:"is_animated"`
Thumb *PhotoSize `json:"thumb,omitempty"` // Optional.
Emoji string `json:"emoji,omitempty"` // Optional.
SetName string `json:"set_name,omitempty"` // Optional.
MaskPosition *MaskPosition `json:"mask_position,omitempty"` // Optional.
FileSize int `json:"file_size,omitempty"` // Optional.
}
// StickerSet represents a sticker set.
//
// https://core.telegram.org/bots/api#stickerset
type StickerSet struct {
Name string `json:"name"`
Title string `json:"title"`
IsAnimated bool `json:"is_animated"`
ContainsMasks bool `json:"contains_masks"`
Stickers []*Sticker `json:"stickers"`
Thumb *PhotoSize `json:"thumb,omitempty"` // Optional.
}
// MaskPosition describes the position on faces where a mask should be placed by default.
//
// 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"`
}