mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
Bot API 6.7 (#1168)
* Added 6.7 features * Update after release * Added tests * Added changelog
This commit is contained in:
parent
aad2de4324
commit
1538bc2e2d
34 changed files with 754 additions and 51 deletions
37
docs/api/methods/get_my_name.rst
Normal file
37
docs/api/methods/get_my_name.rst
Normal 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(...))
|
||||
|
|
@ -42,6 +42,7 @@ Available methods
|
|||
get_my_commands
|
||||
get_my_default_administrator_rights
|
||||
get_my_description
|
||||
get_my_name
|
||||
get_my_short_description
|
||||
get_user_profile_photos
|
||||
hide_general_forum_topic
|
||||
|
|
@ -78,6 +79,7 @@ Available methods
|
|||
set_my_commands
|
||||
set_my_default_administrator_rights
|
||||
set_my_description
|
||||
set_my_name
|
||||
set_my_short_description
|
||||
unban_chat_member
|
||||
unban_chat_sender_chat
|
||||
|
|
|
|||
44
docs/api/methods/set_my_name.rst
Normal file
44
docs/api/methods/set_my_name.rst
Normal 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(...)
|
||||
9
docs/api/types/bot_name.rst
Normal file
9
docs/api/types/bot_name.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#######
|
||||
BotName
|
||||
#######
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.bot_name
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
|
@ -34,6 +34,7 @@ Inline mode
|
|||
inline_query_result_venue
|
||||
inline_query_result_video
|
||||
inline_query_result_voice
|
||||
inline_query_results_button
|
||||
input_contact_message_content
|
||||
input_invoice_message_content
|
||||
input_location_message_content
|
||||
|
|
@ -60,6 +61,7 @@ Available types
|
|||
bot_command_scope_chat_member
|
||||
bot_command_scope_default
|
||||
bot_description
|
||||
bot_name
|
||||
bot_short_description
|
||||
callback_query
|
||||
chat
|
||||
|
|
@ -121,6 +123,7 @@ Available types
|
|||
reply_keyboard_markup
|
||||
reply_keyboard_remove
|
||||
response_parameters
|
||||
switch_inline_query_chosen_chat
|
||||
user
|
||||
user_profile_photos
|
||||
user_shared
|
||||
|
|
|
|||
9
docs/api/types/inline_query_results_button.rst
Normal file
9
docs/api/types/inline_query_results_button.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
########################
|
||||
InlineQueryResultsButton
|
||||
########################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.inline_query_results_button
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
9
docs/api/types/switch_inline_query_chosen_chat.rst
Normal file
9
docs/api/types/switch_inline_query_chosen_chat.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
###########################
|
||||
SwitchInlineQueryChosenChat
|
||||
###########################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.switch_inline_query_chosen_chat
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
Loading…
Add table
Add a link
Reference in a new issue