aiogram/docs2/api/methods/get_file.rst

46 lines
642 B
ReStructuredText
Raw Normal View History

#######
getFile
#######
Returns: :obj:`File`
.. automodule:: aiogram.methods.get_file
:members:
2020-06-27 19:46:01 +03:00
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: File = await bot.get_file(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_file import GetFile`
2021-01-24 20:54:38 +02:00
- alias: :code:`from aiogram.methods import GetFile`
In handlers with current bot
----------------------------
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: File = await GetFile(...)
With specific bot
~~~~~~~~~~~~~~~~~
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: File = await bot(GetFile(...))