stickers.ChangeSticker

class pyrogram.raw.functions.stickers.ChangeSticker

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

Details:
  • Layer: 227

  • 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
├── 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",
    )
)