stickers.ReplaceSticker

class pyrogram.raw.functions.stickers.ReplaceSticker

Replace a sticker in a stickerset ».

Details:
  • Layer: 223

  • ID: 4696459A

Parameters:
Returns:

messages.StickerSet

TL Schema

stickers.replaceSticker#4696459a
sticker:InputDocument
new_sticker:InputStickerSetItem

= messages.StickerSet

Parameter Tree

ReplaceSticker
├── stickerInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
└── new_stickerInputStickerSetItem
├── documentInputDocument
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── emojistring
├── mask_coordsMaskCoords (optional)
│ └── MaskCoords
│ ├── nint
│ ├── xdouble
│ ├── ydouble
│ └── zoomdouble
└── keywordsstring (optional)

Example

await app.invoke(
    ReplaceSticker(
        sticker=InputDocumentEmpty(),
        new_sticker=InputStickerSetItem(
            document=InputDocumentEmpty(),
            emoji="text",
            mask_coords=None,
            keywords=None
        ),
    )
)