stickers.setStickerSetThumb
Set stickerset thumbnail
func (c *Client) StickersSetStickerSetThumb(ctx context.Context, request *StickersSetStickerSetThumbRequest) (MessagesStickerSetClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StickersSetStickerSetThumb(ctx, &tg.StickersSetStickerSetThumbRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesStickerSetClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Stickerset | InputStickerSetClass | yes | Stickerset |
Thumb | InputDocumentClass | — | Thumbnail (only for normal stickersets, not custom emoji stickersets). |
ThumbDocumentID | int64 | — | 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
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
stickers.setStickerSetThumb#a76a5392