2020-06-15 02:22:24 +03:00
#################
uploadStickerFile
#################
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 File on success.
Returns: :obj: `File`
.. automodule :: aiogram.api.methods.upload_sticker_file
:members:
2020-06-27 19:46:01 +03:00
:member-order: bysource
:special-members: __init__
:undoc-members: True
2020-06-15 02:22:24 +03:00
Usage
=====
As bot method
-------------
.. code-block ::
result: File = await bot.upload_sticker_file(...)
Method as object
----------------
Imports:
- :code: `from aiogram.methods import UploadStickerFile`
- :code: `from aiogram.api.methods import UploadStickerFile`
- :code: `from aiogram.api.methods.upload_sticker_file import UploadStickerFile`
In handlers with current bot
----------------------------
.. code-block ::
result: File = await UploadStickerFile(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block ::
result: File = await bot(UploadStickerFile(...))