Sticker
class Sticker
This object represents a sticker.
Methods
No description
Identifier for this file, which can be used to download or reuse the file.
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.
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.
Sticker width.
Sticker height.
True, if the sticker is animated.
True, if the sticker is a video sticker.
Optional. Sticker thumbnail in the .WEBP or .JPG format.
Optional. Emoji associated with the sticker.
Optional. Name of the sticker set to which the sticker belongs.
Optional. For premium regular stickers, premium animation for the sticker.
Optional. For mask stickers, the position where the mask should be placed.
Optional. For custom emoji stickers, unique identifier of the custom emoji.
Optional. File size in bytes.
Details
at line 26
__construct(string $file_id, string $file_unique_id, string $type, int $width, int $height, bool $is_animated, bool $is_video, PhotoSize|null $thumb = null, string|null $emoji = null, string|null $set_name = null, File|null $premium_animation = null, MaskPosition|null $mask_position = null, string|null $custom_emoji_id = null, int|null $file_size = null)
No description
at line 47
string
getFileId()
Identifier for this file, which can be used to download or reuse the file.
at line 55
string
getFileUniqueId()
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.
at line 63
string
getType()
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.
at line 71
int
getWidth()
Sticker width.
at line 79
int
getHeight()
Sticker height.
at line 87
bool
getIsAnimated()
True, if the sticker is animated.
at line 95
bool
getIsVideo()
True, if the sticker is a video sticker.
at line 103
PhotoSize|null
getThumb()
Optional. Sticker thumbnail in the .WEBP or .JPG format.
at line 111
string|null
getEmoji()
Optional. Emoji associated with the sticker.
at line 119
string|null
getSetName()
Optional. Name of the sticker set to which the sticker belongs.
at line 127
File|null
getPremiumAnimation()
Optional. For premium regular stickers, premium animation for the sticker.
at line 135
MaskPosition|null
getMaskPosition()
Optional. For mask stickers, the position where the mask should be placed.
at line 143
string|null
getCustomEmojiId()
Optional. For custom emoji stickers, unique identifier of the custom emoji.
at line 151
int|null
getFileSize()
Optional. File size in bytes.