mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
38 lines
549 B
ReStructuredText
38 lines
549 B
ReStructuredText
|
|
#########
|
||
|
|
getMyName
|
||
|
|
#########
|
||
|
|
|
||
|
|
Returns: :obj:`BotName`
|
||
|
|
|
||
|
|
.. automodule:: aiogram.methods.get_my_name
|
||
|
|
:members:
|
||
|
|
:member-order: bysource
|
||
|
|
:undoc-members: True
|
||
|
|
|
||
|
|
|
||
|
|
Usage
|
||
|
|
=====
|
||
|
|
|
||
|
|
As bot method
|
||
|
|
-------------
|
||
|
|
|
||
|
|
.. code-block::
|
||
|
|
|
||
|
|
result: BotName = await bot.get_my_name(...)
|
||
|
|
|
||
|
|
|
||
|
|
Method as object
|
||
|
|
----------------
|
||
|
|
|
||
|
|
Imports:
|
||
|
|
|
||
|
|
- :code:`from aiogram.methods.get_my_name import GetMyName`
|
||
|
|
- alias: :code:`from aiogram.methods import GetMyName`
|
||
|
|
|
||
|
|
With specific bot
|
||
|
|
~~~~~~~~~~~~~~~~~
|
||
|
|
|
||
|
|
.. code-block:: python
|
||
|
|
|
||
|
|
result: BotName = await bot(GetMyName(...))
|