stickers.ReplaceSticker
- class pyrogram.raw.functions.stickers.ReplaceSticker
Replace a sticker in a stickerset ».
- Details:
Layer:
223ID:
4696459A
- Parameters:
sticker (
InputDocument) – Old sticker document.new_sticker (
InputStickerSetItem) – New sticker.
- Returns:
TL Schema
stickers.replaceSticker#4696459a
sticker:InputDocument
new_sticker:InputStickerSetItem
= messages.StickerSet
Parameter Tree
ReplaceSticker
├── sticker →
InputDocument│ ├──
InputDocumentEmpty│ └──
InputDocument│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes└── new_sticker →
InputStickerSetItem├── document →
InputDocument│ ├──
InputDocumentEmpty│ └──
InputDocument│ ├── id →
long│ ├── access_hash →
long│ └── file_reference →
bytes├── emoji →
string├── mask_coords →
MaskCoords (optional)│ └──
MaskCoords│ ├── n →
int│ ├── x →
double│ ├── y →
double│ └── zoom →
double└── keywords →
string (optional)Example
await app.invoke(
ReplaceSticker(
sticker=InputDocumentEmpty(),
new_sticker=InputStickerSetItem(
document=InputDocumentEmpty(),
emoji="text",
mask_coords=None,
keywords=None
),
)
)