Constructor: documentAttributeSticker

Back to constructors index

Defines a sticker

Attributes:

Name Type Required Description
mask Bool Optional Whether this is a mask sticker
alt string Yes Alternative emoji representation of sticker
stickerset InputStickerSet Optional Associated stickerset
mask_coords MaskCoords Optional Mask coordinates (if this is a mask sticker, attached to a photo)

Type: DocumentAttribute

Example:

$documentAttributeSticker = ['_' => 'documentAttributeSticker', 'mask' => Bool, 'alt' => 'string', 'stickerset' => InputStickerSet, 'mask_coords' => MaskCoords];

Or, if you’re into Lua:

documentAttributeSticker={_='documentAttributeSticker', mask=Bool, alt='string', stickerset=InputStickerSet, mask_coords=MaskCoords}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.