Returns: File

class aiogram.methods.upload_sticker_file.UploadStickerFile(*, user_id: int, png_sticker: aiogram.types.input_file.InputFile, **extra_data: Any)[source]#

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

Source: https://core.telegram.org/bots/api#uploadstickerfile

user_id: int#

User identifier of sticker file owner

png_sticker: aiogram.types.input_file.InputFile#

PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More information on Sending Files ยป

build_request(bot: Bot) Request[source]#


As bot method#

result: File = await bot.upload_sticker_file(...)

Method as object#


  • from aiogram.methods.upload_sticker_file import UploadStickerFile

  • alias: from aiogram.methods import UploadStickerFile

With specific bot#

result: File = await bot(UploadStickerFile(...))