aiogram/docs/api/methods/get_me.rst
Alex Root Junior e1cd7268a1 Remove MkDocs
2021-05-13 00:13:09 +03:00

44 lines
621 B
ReStructuredText

#####
getMe
#####
Returns: :obj:`User`
.. automodule:: aiogram.methods.get_me
:members:
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: User = await bot.get_me(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_me import GetMe`
- alias: :code:`from aiogram.methods import GetMe`
In handlers with current bot
----------------------------
.. code-block:: python
result: User = await GetMe(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: User = await bot(GetMe(...))