Added full support for the Bot API 9.6 (#1792)

* Added full support for the Bot API 9.6

* Add support for `managed_bot` updates

* Set `description_parse_mode` default to `"parse_mode"` and use `DateTime` for `addition_date` in `PollOption`

* Update changelog with features and changes from Bot API 9.6

* Add changelog fragment generator and update poll parameter descriptions
This commit is contained in:
Alex Root Junior 2026-04-04 01:22:08 +03:00 committed by GitHub
parent 00c1130938
commit 9f49c0413f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
107 changed files with 3077 additions and 328 deletions

View file

@ -0,0 +1,38 @@
##################
getManagedBotToken
##################
Returns: :obj:`str`
.. automodule:: aiogram.methods.get_managed_bot_token
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: str = await bot.get_managed_bot_token(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_managed_bot_token import GetManagedBotToken`
- alias: :code:`from aiogram.methods import GetManagedBotToken`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: str = await bot(GetManagedBotToken(...))

View file

@ -35,6 +35,7 @@ Available methods
:maxdepth: 1
answer_callback_query
answer_web_app_query
approve_chat_join_request
ban_chat_member
ban_chat_sender_chat
@ -74,6 +75,7 @@ Available methods
get_chat_menu_button
get_file
get_forum_topic_icon_stickers
get_managed_bot_token
get_me
get_my_commands
get_my_default_administrator_rights
@ -98,9 +100,12 @@ Available methods
remove_user_verification
reopen_forum_topic
reopen_general_forum_topic
replace_managed_bot_token
repost_story
restrict_chat_member
revoke_chat_invite_link
save_prepared_inline_message
save_prepared_keyboard_button
send_animation
send_audio
send_chat_action
@ -173,16 +178,6 @@ Updating messages
stop_message_live_location
stop_poll
Inline mode
===========
.. toctree::
:maxdepth: 1
answer_inline_query
answer_web_app_query
save_prepared_inline_message
Games
=====
@ -226,3 +221,11 @@ Telegram Passport
:maxdepth: 1
set_passport_data_errors
Inline mode
===========
.. toctree::
:maxdepth: 1
answer_inline_query

View file

@ -0,0 +1,45 @@
######################
replaceManagedBotToken
######################
Returns: :obj:`str`
.. automodule:: aiogram.methods.replace_managed_bot_token
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: str = await bot.replace_managed_bot_token(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.replace_managed_bot_token import ReplaceManagedBotToken`
- alias: :code:`from aiogram.methods import ReplaceManagedBotToken`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: str = await bot(ReplaceManagedBotToken(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return ReplaceManagedBotToken(...)

View file

@ -0,0 +1,45 @@
##########################
savePreparedKeyboardButton
##########################
Returns: :obj:`PreparedKeyboardButton`
.. automodule:: aiogram.methods.save_prepared_keyboard_button
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: PreparedKeyboardButton = await bot.save_prepared_keyboard_button(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.save_prepared_keyboard_button import SavePreparedKeyboardButton`
- alias: :code:`from aiogram.methods import SavePreparedKeyboardButton`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: PreparedKeyboardButton = await bot(SavePreparedKeyboardButton(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return SavePreparedKeyboardButton(...)

View file

@ -43,3 +43,9 @@ As reply into Webhook in handler
.. code-block:: python
return SetChatMemberTag(...)
As shortcut from received object
--------------------------------
- :meth:`aiogram.types.chat.Chat.set_member_tag`