stickers.ChangeSticker
- class pyrogram.raw.functions.stickers.ChangeSticker
Update the keywords, emojis or mask coordinates of a sticker.
- Details:
Layer:
223ID:
F5537EBC
- Parameters:
sticker (
InputDocument) – The stickeremoji (
str, optional) – If set, updates the emoji list associated to the stickermask_coords (
MaskCoords, optional) – If set, updates the mask coordinateskeywords (
str, optional) – If set, updates the sticker keywords (separated by commas). Can’t be provided for mask stickers.
- Returns:
TL Schema
stickers.changeSticker#f5537ebc
flags:#
sticker:InputDocument
emoji:flags.0?string
mask_coords:flags.1?MaskCoords
keywords:flags.2?string
= messages.StickerSet
Parameter Tree
ChangeSticker
├── sticker →
InputDocument│ ├──
InputDocumentEmpty│ └──
InputDocument│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes├── emoji →
string (optional)├── mask_coords →
MaskCoords (optional)│ └──
MaskCoords│ ├── n →
int│ ├── x →
double│ ├── y →
double│ └── zoom →
double└── keywords →
string (optional)Example
await app.invoke(
ChangeSticker(
sticker=InputDocumentEmpty(),
emoji="text",
mask_coords=MaskCoords(
n=0,
x=0.0,
y=0.0,
zoom=0.0
),
keywords="text",
)
)