stickers.ChangeSticker

class pyrogram.raw.functions.stickers.ChangeSticker

Update the keywords, emojis or mask coordinates of a sticker.

Details:
  • Layer: 223

  • ID: F5537EBC

Parameters:
  • sticker (InputDocument) – The sticker

  • emoji (str, optional) – If set, updates the emoji list associated to the sticker

  • mask_coords (MaskCoords, optional) – If set, updates the mask coordinates

  • keywords (str, optional) – If set, updates the sticker keywords (separated by commas). Can’t be provided for mask stickers.

Returns:

messages.StickerSet

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
├── stickerInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── emojistring (optional)
├── mask_coordsMaskCoords (optional)
│ └── MaskCoords
│ ├── nint
│ ├── xdouble
│ ├── ydouble
│ └── zoomdouble
└── keywordsstring (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",
    )
)