/
stickerObjects.go
59 lines (56 loc) · 2.64 KB
/
stickerObjects.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package objects
/*Sticker represents a sticker.*/
type Sticker struct {
/*Identifier for this file, which can be used to download or reuse the file*/
FileId string `json:"file_id"`
/*Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.*/
FileUniqueId string `json:"file_unique_id"`
/*Sticker width*/
Width int `json:"width"`
/*Sticker height*/
Height int `json:"height"`
/*True, if the sticker is animated*/
IsAnimated bool `json:"is_animated"`
/*True, if the sticker is a video sticker*/
IsVideo bool `json:"is_video"`
/*Optional. Sticker thumbnail in the .WEBP or .JPG format*/
Thumb *PhotoSize `json:"thumb,omitempty"`
/*Optional. Emoji associated with the sticker*/
Emoji string `json:"emoji,omitempty"`
/*Optional. Name of the sticker set to which the sticker belongs*/
SetName string `json:"set_name,omitempty"`
/*Optional. Premium animation for the sticker, if the sticker is premium*/
PremiumAnimation *File `json:"premium_animation,omitempty"`
/*Optional. For mask stickers, the position where the mask should be placed*/
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
/*Optional. File size in bytes*/
FileSize int `json:"file_size,omitempty"`
}
/*StickerSet represents a sticker set.*/
type StickerSet struct {
/*Sticker set name*/
Name string `json:"name"`
/*Sticker set title*/
Title string `json:"title"`
/*True, if the sticker set contains animated stickers*/
IsAnimated bool `json:"is_animated"`
/*True, if the sticker set contains video stickers*/
IsVideo bool `json:"is_video"`
/*True, if the sticker set contains masks*/
ContainsMask bool `json:"contains_mask"`
/*List of all set stickers*/
Stickers []Sticker `json:"stickers"`
/*Optional. Sticker set thumbnail in the .WEBP or .TGS format*/
Thumb *PhotoSize `json:"thumb,omitempty"`
}
/*MaskPosition describes the position on faces where a mask should be placed by default.*/
type MaskPosition struct {
/*The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.*/
Point string `json:"point"`
/*Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.*/
XShift float32 `json:"x_shift"`
/*Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.*/
YShift float32 `json:"y_shift"`
/*Mask scaling coefficient. For example, 2.0 means double size.*/
Scale float32 `json:"scale"`
}