Skip to content

uploadStickerFile

Function · TDLib 1.8.67 · d1085f9c

Uploads a file with a sticker; returns the uploaded file

uploadStickerFile(
  user_id: int53,
  sticker_format: StickerFormat,
  sticker: InputFile
) → File

user_id

int53

Sticker file owner; ignored for regular users

sticker_format

StickerFormat

Sticker format

sticker

InputFile

File to upload; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements