setStickerSetThumbnail
Set a sticker set’s thumbnail.
Parameters
slug: string
The slug of the sticker set or its link.
The new thumbnail of the sticker set.
The identifier of the owner of the sticker set. Required for bots. Bot-only.
fileName?: string
The file name to assign if applicable.
fileSize?: number
The file’s size.
mimeType?: string
The MIME type to assign if applicable.
chunkSize?: number
Size of each upload chunk in bytes.
signal?: AbortSignal
Upload abort signal.
progressId?: string
A progress ID retrieved from the method getProgressId. If specified, updates on the upload progress will be sent.
Result
void
Syntax
// Required parameters only.
await client.setStickerSetThumbnail(slug, thumbnail);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.setStickerSetThumbnail(slug, thumbnail, {
userId,
fileName,
fileSize,
mimeType,
chunkSize,
signal,
progressId,
});