Layer 224
StickersSetStickerSetThumb
Set stickerset thumbnail
method
Users
Bots
stickers.setStickerSetThumb#a76a5392 flags:# stickerset:InputStickerSet thumb:flags.0?InputDocument thumb_document_id:flags.1?long = messages.StickerSet;
Parameters
| Name | Type | Description |
|---|---|---|
| Stickerset | InputStickerSet | Stickerset |
| Thumb | flags.0?InputDocument | Thumbnail (only for normal stickersets, not custom emoji stickersets). |
| ThumbDocumentId | flags.1?long | 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.StickerSetGogram Example
// StickersSetStickerSetThumb - using Params struct result, err := client.StickersSetStickerSetThumb(&tg.StickersSetStickerSetThumbParams{ Stickerset: &tg.InputStickerSet{}, // Optional fields: // Thumb: &tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, // ThumbDocumentId: int64(1234567890), }) if err != nil { // handle error } // result is *tg.MessagesStickerSet
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKERSET_INVALID | The provided sticker set is invalid. |
| 400 | STICKER_THUMB_PNG_NOPNG | Incorrect stickerset thumb file provided, PNG / WEBP expected. |
| 400 | STICKER_THUMB_TGS_NOTGS | Incorrect stickerset TGS thumb file provided. |