upload_sticker_file()¶
- async Client.upload_sticker_file()¶
Upload a file with a sticker for later use in
create_new_sticker_set(),add_sticker_to_set()andreplace_sticker_in_set().Usable by Users Bots- Parameters:
user_id (
int|str) – Unique identifier (int) or username (str) of the sticker set owner.sticker (
str|BinaryIO) – File path, HTTP URL or binary file-like object of the sticker, which must fit in a 512x512 square.sticker_format (
StickerFormat) – Format of the sticker.
- Returns:
File– The uploaded file is returned.