aiogram/docs2/api/methods/get_me.rst

46 lines
622 B
ReStructuredText
Raw Normal View History

#####
getMe
#####
Returns: :obj:`User`
.. automodule:: aiogram.methods.get_me
:members:
2020-06-27 19:46:01 +03:00
: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`
2021-01-24 20:54:38 +02:00
- alias: :code:`from aiogram.methods import GetMe`
In handlers with current bot
----------------------------
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: User = await GetMe(...)
With specific bot
~~~~~~~~~~~~~~~~~
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: User = await bot(GetMe(...))