mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
37 lines
549 B
ReStructuredText
37 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(...))
|