uploadStickerFile

Use this method to upload a file with a sticker for later use in the createNewStickerSet and addStickerToSet methods (the file can be used multiple times). Returns the uploaded File on success.

Arguments
Name Type Description Required
sticker CURLFile | array | stdClass A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files » yes
sticker_format string Format of the sticker, must be one of “static”, “animated”, “video” yes
user_id int | null User identifier of sticker file owner no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : BPT\types\file | BPT\types\responseError | bool

Static or normal : Static

Examples :

request::uploadStickerFile(sticker: InputFile, sticker_format: string, user_id: int | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::uploadStickerFile(['sticker' => InputFile, 'sticker_format' => string, 'user_id' => int | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::uploadStickerFile(sticker: InputFile, sticker_format: string);
request::uploadStickerFile(['sticker' => InputFile, 'sticker_format' => string]);