DocumentAttributeSticker
- class pyrogram.raw.types.DocumentAttributeSticker
Defines a sticker
Constructor of
DocumentAttribute.- Details:
Layer:
223ID:
6319D612
- Parameters:
alt (
str) – Alternative emoji representation of stickerstickerset (
InputStickerSet) – Associated stickersetmask (
bool, optional) – Whether this is a mask stickermask_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
├── mask →
true (optional)├── alt →
string├── stickerset →
InputStickerSet│ ├──
InputStickerSetEmpty│ ├──
InputStickerSetID│ │ ├── id →
long│ │ └── access_hash →
long│ ├──
InputStickerSetShortName│ │ └── short_name →
string│ ├──
InputStickerSetDice│ │ └── emoticon →
string│ └──
InputStickerSetTonGifts└── mask_coords →
MaskCoords (optional)└──
MaskCoords├── n →
int├── x →
double├── y →
double└── zoom →
doubleExample
DocumentAttributeSticker(
alt="text",
stickerset=InputStickerSetEmpty(),
)