1 | <?php |
||
24 | class CreateNewStickerSet extends TelegramMethods |
||
25 | { |
||
26 | /** |
||
27 | * User identifier of created sticker set owner |
||
28 | * @var int |
||
29 | */ |
||
30 | public $user_id = 0; |
||
31 | |||
32 | /** |
||
33 | * Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english |
||
34 | * letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in |
||
35 | * "_by_<bot username>". <bot_username> is case insensitive. 1-64 characters |
||
36 | * @var string |
||
37 | */ |
||
38 | public $name = ''; |
||
39 | |||
40 | /** |
||
41 | * Sticker set title, 1-64 characters |
||
42 | * @var bool |
||
43 | */ |
||
44 | public $title = ''; |
||
45 | |||
46 | /** |
||
47 | * Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either |
||
48 | * width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the |
||
49 | * Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one |
||
50 | * using multipart/form-data |
||
51 | * @var string|InputFile |
||
52 | */ |
||
53 | public $png_sticker; |
||
54 | |||
55 | /** |
||
56 | * One or more emoji corresponding to the sticker |
||
57 | * @var string |
||
58 | */ |
||
59 | public $emojis = ''; |
||
60 | |||
61 | /** |
||
62 | * Pass True, if a set of mask stickers should be created |
||
63 | * @var bool |
||
64 | */ |
||
65 | public $is_masks = false; |
||
66 | |||
67 | /** |
||
68 | * Position where the mask should be placed on faces |
||
69 | * @var MaskPosition |
||
70 | */ |
||
71 | public $mask_position; |
||
72 | |||
73 | public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes |
||
77 | |||
78 | public function getMandatoryFields(): array |
||
88 | |||
89 | public function hasLocalFiles(): bool |
||
93 | |||
94 | public function getLocalFiles(): Generator |
||
98 | } |
||
99 |