2017-11-18 14:41:23 +00:00
|
|
|
package telebot
|
|
|
|
|
|
|
|
// Sticker object represents a WebP image, so-called sticker.
|
|
|
|
type Sticker struct {
|
|
|
|
File
|
|
|
|
|
|
|
|
Width int `json:"width"`
|
|
|
|
Height int `json:"height"`
|
|
|
|
|
|
|
|
Thumbnail *Photo `json:"thumb,omitempty"`
|
|
|
|
Emoji string `json:"emoji,omitempty"`
|
|
|
|
SetName string `json:"set_name,omitempty"`
|
|
|
|
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-07-22 18:10:18 +00:00
|
|
|
// StickerSet represents a sticker set
|
|
|
|
type StickerSet struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
ContainsMasks bool `json:"contains_masks"`
|
|
|
|
Stickers []Sticker `json:"stickers"`
|
|
|
|
}
|
|
|
|
|
2017-11-19 15:16:39 +00:00
|
|
|
// MaskPosition describes the position on faces where
|
|
|
|
// a mask should be placed by default.
|
2017-11-18 14:41:23 +00:00
|
|
|
type MaskPosition struct {
|
2017-11-19 15:16:39 +00:00
|
|
|
Feature MaskFeature `json:"point"`
|
|
|
|
XShift float32 `json:"x_shift"`
|
|
|
|
YShift float32 `json:"y_shift"`
|
|
|
|
Scale float32 `json:"scale"`
|
2017-11-18 14:41:23 +00:00
|
|
|
}
|
2019-07-22 18:10:18 +00:00
|
|
|
|
|
|
|
// StickerSetParams describes the payload in creating new sticker set api-method.
|
|
|
|
type StickerSetParams struct {
|
|
|
|
UserID int
|
|
|
|
Name string
|
|
|
|
Title string
|
|
|
|
PngSticker *File
|
|
|
|
Emojis string
|
|
|
|
}
|