Interface UploadStickerFile

Uploads a file with a sticker; returns the uploaded file. Request type for Tdjson#uploadStickerFile.

interface UploadStickerFile {
    @type: "uploadStickerFile";
    sticker: InputFile;
    sticker_format: StickerFormat;
    user_id: number;
}

Properties

@type: "uploadStickerFile"
sticker: InputFile

File 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.

sticker_format: StickerFormat

Sticker format.

user_id: number

Sticker file owner; ignored for regular users.