stickers_dto

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputSticker

type InputSticker struct {
	Sticker      string        `json:"sticker"`
	EmojiList    []string      `json:"emoji_list,omitempty"`
	MaskPosition *MaskPosition `json:"mask_position,omitempty"`
	Keywords     []string      `json:"keywords,omitempty"`
}

https://core.telegram.org/bots/api#inputsticker

type MaskPosition

type MaskPosition struct {
	Point  string  `json:"point"`
	XShift float64 `json:"x_shift"`
	YShift float64 `json:"y_shift"`
	Scale  float64 `json:"scale"`
}

https://core.telegram.org/bots/api#maskposition

type 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        *utils_dto.PhotoSize `json:"thumbnail,omitempty"`
	Emoji            string               `json:"emoji,omitempty"`
	SetName          string               `json:"set_name,omitempty"`
	PremiumAnimation *utils_dto.File      `json:"premium_animation,omitempty"`
	MaskPosition     *MaskPosition        `json:"mask_position,omitempty"`
	CustomEmojiID    string               `json:"custom_emoji_id,omitempty"`
	NeedsRepainting  bool                 `json:"needs_repainting,omitempty"`
	FileSize         int                  `json:"file_size,omitempty"`
}

https://core.telegram.org/bots/api#stickers

type StickerSet

type StickerSet struct {
	Name        string               `json:"name"`
	Title       string               `json:"title"`
	StickerType string               `json:"sticker_type"`
	IsAnimated  bool                 `json:"is_animated"`
	IsVideo     bool                 `json:"is_video"`
	Stickers    []Sticker            `json:"stickers"`
	Thumbnail   *utils_dto.PhotoSize `json:"thumbnail,omitempty"`
}

https://core.telegram.org/bots/api#stickerset

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL