uploadStickerFile¶
Returns: File
- class litegram.methods.upload_sticker_file.UploadStickerFile(*, user_id: int, sticker: InputFile, sticker_format: str, **extra_data: Any)[source]¶
Use this method to upload a file with a sticker for later use in the
litegram.methods.create_new_sticker_set.CreateNewStickerSet,litegram.methods.add_sticker_to_set.AddStickerToSet, orlitegram.methods.replace_sticker_in_set.ReplaceStickerInSetmethods (the file can be used multiple times). Returns the uploadedlitegram.types.file.Fileon success.Source: https://core.telegram.org/bots/api#uploadstickerfile
- sticker: InputFile¶
A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers <https://core.telegram.org/stickers>`_`https://core.telegram.org/stickers for technical requirements. More information on Sending Files »
Usage¶
As bot method¶
result: File = await bot.upload_sticker_file(...)
Method as object¶
Imports:
from litegram.methods.upload_sticker_file import UploadStickerFilealias:
from litegram.methods import UploadStickerFile
With specific bot¶
result: File = await bot(UploadStickerFile(...))