stickers.SetStickerSetThumb

class pyrogram.raw.functions.stickers.SetStickerSetThumb

Set stickerset thumbnail

Details:
  • Layer: 227

  • ID: A76A5392

Parameters:
  • stickerset (InputStickerSet) – Stickerset

  • thumb (InputDocument, optional) – Thumbnail (only for normal stickersets, not custom emoji stickersets).

  • thumb_document_id (int 64-bit, optional) – Only for custom emoji stickersets, ID of a custom emoji present in the set to use as thumbnail; pass 0 to fallback to the first custom emoji of the set.

Returns:

messages.StickerSet

TL Schema

stickers.setStickerSetThumb#a76a5392
flags:#
stickerset:InputStickerSet
thumb:flags.0?InputDocument
thumb_document_id:flags.1?long

= messages.StickerSet

Parameter Tree

SetStickerSetThumb
├── stickerset → InputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ │ ├── id → long
│ │ └── access_hash → long
│ │ └── short_name → string
│ ├── InputStickerSetDice
│ │ └── emoticon → string
├── thumb → InputDocument (optional)
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── id → long
│ ├── access_hash → long
│ └── file_reference → bytes
└── thumb_document_id → long (optional)

Example

await app.invoke(
    SetStickerSetThumb(
        stickerset=InputStickerSetEmpty(),
        thumb=InputDocumentEmpty(),
        thumb_document_id=0,
    )
)