stickers.AddStickerToSet
- class pyrogram.raw.functions.stickers.AddStickerToSet
Add a sticker to a stickerset. The sticker set must have been created by the current user/bot.
- Details:
Layer:
223ID:
8653FEBE
- Parameters:
stickerset (
InputStickerSet) – The stickersetsticker (
InputStickerSetItem) – The sticker
- Returns:
TL Schema
stickers.addStickerToSet#8653febe
stickerset:InputStickerSet
sticker:InputStickerSetItem
= messages.StickerSet
Parameter Tree
AddStickerToSet
├── stickerset →
InputStickerSet│ ├──
InputStickerSetEmpty│ ├──
InputStickerSetID│ │ ├── id →
long│ │ └── access_hash →
long│ ├──
InputStickerSetShortName│ │ └── short_name →
string│ ├──
InputStickerSetDice│ │ └── emoticon →
string│ └──
InputStickerSetTonGifts└── 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(
AddStickerToSet(
stickerset=InputStickerSetEmpty(),
sticker=InputStickerSetItem(
document=InputDocumentEmpty(),
emoji="text",
mask_coords=None,
keywords=None
),
)
)