Added 6.7 features

This commit is contained in:
Alex Root Junior 2023-04-20 23:37:41 +03:00
parent 2dd019d486
commit da6e428b41
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
31 changed files with 700 additions and 4 deletions

View file

@ -0,0 +1,37 @@
#########
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(...))

View file

@ -171,3 +171,12 @@ Inline mode
answer_inline_query
answer_web_app_query
Upcoming update
===============
.. toctree::
:maxdepth: 1
get_my_name
set_my_name

View file

@ -0,0 +1,44 @@
#########
setMyName
#########
Returns: :obj:`bool`
.. automodule:: aiogram.methods.set_my_name
:members:
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.set_my_name(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.set_my_name import SetMyName`
- alias: :code:`from aiogram.methods import SetMyName`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(SetMyName(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return SetMyName(...)