mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 02:06:56 +01:00
1.6 KiB
1.6 KiB
title | description |
---|---|
sticker | Describes sticker |
Constructor: sticker
Describes sticker
Attributes:
Name | Type | Required | Description |
---|---|---|---|
set_id | long | Yes | Identifier of sticker set to which the sticker belongs or 0 if none |
width | int | Yes | Sticker width as defined by sender |
height | int | Yes | Sticker height as defined by sender |
emoji | string | Yes | Emoji corresponding to the sticker |
is_mask | Bool | Yes | True, if the sticker is a mask |
mask_position | maskPosition | Yes | Position where the mask should be placed, nullable |
thumb | photoSize | Yes | Sticker thumb in webp or jpeg format, nullable |
sticker | file | Yes | File with sticker |
Type: Sticker
Example:
$sticker = ['_' => 'sticker', 'set_id' => long, 'width' => int, 'height' => int, 'emoji' => 'string', 'is_mask' => Bool, 'mask_position' => maskPosition, 'thumb' => photoSize, 'sticker' => file];
PWRTelegram json-encoded version:
{"_": "sticker", "set_id": long, "width": int, "height": int, "emoji": "string", "is_mask": Bool, "mask_position": maskPosition, "thumb": photoSize, "sticker": file}
Or, if you're into Lua:
sticker={_='sticker', set_id=long, width=int, height=int, emoji='string', is_mask=Bool, mask_position=maskPosition, thumb=photoSize, sticker=file}