Sticker
This object represents a sticker.
π Schemaβ
Field | Type | Description |
---|---|---|
file_id | String | Identifier for this file, which can be used to download or reuse the file |
file_unique_id | String | 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 | String | Type of the sticker, currently one of βregularβ, βmaskβ. |
width | Integer | Sticker width |
height | Integer | Sticker height |
file_size | Integer | Optional. File size in bytes |
βοΈ Get methodsβ
getFileId()β
Retrieves the unique identifier of the sticker file that can be used to download or reuse the file.
$file_id = $stickerObject->getFileId();
getFileUniqueId()β
Retrieves the unique file identifier for this sticker, useful for tracking this file across different sessions and bots.
$file_unique_id = $stickerObject->getFileUniqueId();
getType()β
Returns the type of the sticker, either βregularβ or βmaskβ.
$type = $stickerObject->getType();
getWidth()β
Gets the width of the sticker in pixels.
$width = $stickerObject->getWidth();
getHeight()β
Gets the height of the sticker in pixels.
$height = $stickerObject->getHeight();
getFileSize()β
Retrieves the file size in bytes, if available.
$file_size = $stickerObject->getFileSize();
β Moreβ
tip
For further information, refer to the official Bale documentation for more details.