stickers.setStickerSetThumb #

Set stickerset thumbnail

Layer 223

messages.stickerSet#6e153f16 set:StickerSet packs:Vector<StickerPack> keywords:Vector<StickerKeyword> documents:Vector<Document> = messages.StickerSet;
messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
---functions---
stickers.setStickerSetThumb#a76a5392 flags:# stickerset:InputStickerSet thumb:flags.0?InputDocument thumb_document_id:flags.1?long = messages.StickerSet;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
stickersetInputStickerSetStickerset
thumbflags.0?InputDocumentThumbnail (only for normal stickersets, not custom emoji stickersets).
thumb_document_idflags.1?longOnly 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.

Result #

messages.StickerSet

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400STICKERSET_INVALIDThe provided sticker set is invalid.
400STICKER_THUMB_PNG_NOPNGIncorrect stickerset thumb file provided, PNG / WEBP expected.
400STICKER_THUMB_TGS_NOTGSIncorrect stickerset TGS thumb file provided.

Custom emojis #

Telegram allows including animated and static custom emojis inside of messages.