Skip to main content

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

NameTypeRequiredDescription
StickersetInputStickerSetClassyesStickerset
ThumbInputDocumentClassThumbnail (only for normal stickersets, not custom emoji stickersets).
ThumbDocumentIDint64Only 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

MessagesStickerSetClass

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.

References