-
-
Notifications
You must be signed in to change notification settings - Fork 959
Expand file tree
/
Copy pathSticker.php
More file actions
48 lines (45 loc) · 2.45 KB
/
Copy pathSticker.php
File metadata and controls
48 lines (45 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot\Entities;
/**
* Class Sticker
*
* @link https://core.telegram.org/bots/api#sticker
*
* @method string getFileId() Identifier for this file, which can be used to download or reuse the file
* @method 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.
* @method 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.
* @method int getWidth() Sticker width
* @method int getHeight() Sticker height
* @method bool getIsAnimated() True, if the sticker is animated
* @method bool getIsVideo() True, if the sticker is a video sticker
* @method PhotoSize getThumbnail() Optional. Sticker thumbnail in .webp or .jpg format
* @method string getEmoji() Optional. Emoji associated with the sticker
* @method string getSetName() Optional. Name of the sticker set to which the sticker belongs
* @method File getPremiumAnimation() Optional. Premium animation for the sticker, if the sticker is premium
* @method MaskPosition getMaskPosition() Optional. For mask stickers, the position where the mask should be placed
* @method string getCustomEmojiId() Optional. For custom emoji stickers, unique identifier of the custom emoji
* @method bool getNeedsRepainting() Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places
* @method int getFileSize() Optional. File size
*/
class Sticker extends Entity
{
/**
* {@inheritdoc}
*/
protected function subEntities(): array
{
return [
'thumbnail' => PhotoSize::class,
'premium_animation' => File::class,
'mask_position' => MaskPosition::class,
];
}
}