MadelineProto/docs/TD_docs/constructors/sticker.md
2017-07-23 16:33:46 +02:00

1.6 KiB

title description
sticker Describes sticker

Constructor: sticker

Back to constructors index

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}