DocumentAttributeSticker

class pyrogram.raw.types.DocumentAttributeSticker

Defines a sticker

Constructor of DocumentAttribute.

Details:
  • Layer: 223

  • ID: 6319D612

Parameters:
  • alt (str) – Alternative emoji representation of sticker

  • stickerset (InputStickerSet) – Associated stickerset

  • mask (bool, optional) – Whether this is a mask sticker

  • mask_coords (MaskCoords, optional) – Mask coordinates (if this is a mask sticker, attached to a photo)

TL Schema

documentAttributeSticker#6319d612
flags:#
mask:flags.1?true
alt:string
stickerset:InputStickerSet
mask_coords:flags.0?MaskCoords

= DocumentAttribute

Parameter Tree

DocumentAttributeSticker
├── masktrue (optional)
├── altstring
├── stickersetInputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ │ ├── idlong
│ │ └── access_hashlong
│ │ └── short_namestring
│ ├── InputStickerSetDice
│ │ └── emoticonstring
└── mask_coordsMaskCoords (optional)
└── MaskCoords
├── nint
├── xdouble
├── ydouble
└── zoomdouble

Example

DocumentAttributeSticker(
    alt="text",
    stickerset=InputStickerSetEmpty(),
)