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: 227

  • ID: 8653FEBE

Parameters:
Returns:

messages.StickerSet

TL Schema

stickers.addStickerToSet#8653febe
stickerset:InputStickerSet
sticker:InputStickerSetItem

= messages.StickerSet

Parameter Tree

AddStickerToSet
├── stickerset → InputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ │ ├── id → long
│ │ └── access_hash → long
│ │ └── short_name → string
│ ├── InputStickerSetDice
│ │ └── emoticon → string
└── 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
        ),
    )
)