aiogram/docs/api/methods/get_me.rst
2023-07-04 00:39:02 +03:00

38 lines
549 B
ReStructuredText

#####
getMe
#####
Returns: :obj:`User`
.. automodule:: aiogram.methods.get_me
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
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`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: User = await bot(GetMe(...))