Bot API 3.2, introduce Request to replace APIResponse methods.
This commit is contained in:
parent
e97c2417c9
commit
271adc4d97
4 changed files with 435 additions and 160 deletions
30
types.go
30
types.go
|
@ -285,12 +285,22 @@ type Document struct {
|
|||
|
||||
// Sticker contains information about a sticker.
|
||||
type Sticker struct {
|
||||
FileID string `json:"file_id"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Thumbnail *PhotoSize `json:"thumb"` // optional
|
||||
Emoji string `json:"emoji"` // optional
|
||||
FileSize int `json:"file_size"` // optional
|
||||
FileID string `json:"file_id"`
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
Thumbnail *PhotoSize `json:"thumb"` // optional
|
||||
Emoji string `json:"emoji"` // optional
|
||||
SetName string `json:"set_name"` // optional
|
||||
MaskPosition MaskPosition `json:"mask_position"` //optional
|
||||
FileSize int `json:"file_size"` // optional
|
||||
}
|
||||
|
||||
// MaskPosition is the position of a mask.
|
||||
type MaskPosition struct {
|
||||
Point string `json:"point"`
|
||||
XShift float32 `json:"x_shift"`
|
||||
YShift float32 `json:"y_shift"`
|
||||
Scale float32 `json:"scale"`
|
||||
}
|
||||
|
||||
// Video contains information about a video.
|
||||
|
@ -772,3 +782,11 @@ type PreCheckoutQuery struct {
|
|||
ShippingOptionID string `json:"shipping_option_id,omitempty"`
|
||||
OrderInfo *OrderInfo `json:"order_info,omitempty"`
|
||||
}
|
||||
|
||||
// StickerSet is a collection of stickers.
|
||||
type StickerSet struct {
|
||||
Name string `json:"name"`
|
||||
Title string `json:"title"`
|
||||
ContainsMasks bool `json:"contains_masks"`
|
||||
Stickers []Sticker `json:"stickers"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue