From f2916ca03fe097237b8eb703ebfca6aab21ba404 Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Sat, 2 Nov 2024 17:02:47 +0200 Subject: [PATCH] Bump version --- .apiversion | 2 +- CHANGES.rst | 96 ++++++++++++++++++++++++++++++++++++++++ CHANGES/1431.feature.rst | 1 - CHANGES/1583.feature.rst | 5 --- CHANGES/1584.bugfix.rst | 1 - CHANGES/1586.misc.rst | 6 --- CHANGES/1589.misc.rst | 16 ------- CHANGES/1599.doc.rst | 1 - CHANGES/1601.feature.rst | 33 -------------- CHANGES/1602.bugfix.rst | 3 -- README.rst | 2 +- aiogram/__meta__.py | 4 +- 12 files changed, 100 insertions(+), 70 deletions(-) delete mode 100644 CHANGES/1431.feature.rst delete mode 100644 CHANGES/1583.feature.rst delete mode 100644 CHANGES/1584.bugfix.rst delete mode 100644 CHANGES/1586.misc.rst delete mode 100644 CHANGES/1589.misc.rst delete mode 100644 CHANGES/1599.doc.rst delete mode 100644 CHANGES/1601.feature.rst delete mode 100644 CHANGES/1602.bugfix.rst diff --git a/.apiversion b/.apiversion index a7ab6c29..67271a4c 100644 --- a/.apiversion +++ b/.apiversion @@ -1 +1 @@ -7.10 +7.11 diff --git a/CHANGES.rst b/CHANGES.rst index 96108896..1e811724 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,6 +16,102 @@ Changelog .. towncrier release notes start +3.14.0 (2024-11-02) +==================== + +Misc +---- + +- Checked compatibility with Python 3.13 (added to the CI/CD processes), + so now aiogram is totally compatible with it. + + Dropped compatibility with Python 3.8 due to this version being `EOL `_. + + .. warning:: + + In some cases you will need to have the installed compiler (Rust or C++) + to install some of the dependencies to compile packages from source on `pip install` command. + + - If you are using Windows, you will need to have the `Visual Studio `_ installed. + - If you are using Linux, you will need to have the `build-essential` package installed. + - If you are using macOS, you will need to have the `Xcode `_ installed. + + When developers of this dependencies will release new versions with precompiled wheels for Windows, Linux and macOS, + this action will not be necessary anymore until the next version of the Python interpreter. + `#1589 `_ +- Added business_connection_id to the :class:`aiogram.types.message.Message` API methods shortcuts. + + Integrated the :code:`business_connection_id` attribute into various message manipulation methods, + ensuring consistent data handling. This update eliminates the need to pass the + :code:`business_connection_id` as a parameter, + instead directly accessing it from the instance attributes. + `#1586 `_ + +Features +-------- + +- Add function ``get_value`` to all built-in storage implementations, ``FSMContext`` and ``SceneWizard`` + `#1431 `_ +- Enhanced the inheritance of handlers and actions in :ref:`Scenes `. + Refactored to eliminate the copying of previously connected handlers and actions from parent scenes. + Now, handlers are dynamically rebuilt based on the current class, properly utilizing class inheritance and enabling handler overrides. + + That's mean that you can now override handlers and actions in the child scene, instead of copying and duplicating them. + `#1583 `_ +- Added full support of `Bot API 7.11 `_ + + - Added the class :class:`aiogram.types.copy_text_button.CopyTextButton` + and the field :code:`copy_text` in the class + :class:`aiogram.types.inline_keyboard_button.InlineKeyboardButton`, + allowing bots to send and receive inline buttons that copy arbitrary text. + - Added the parameter :code:`allow_paid_broadcast` to the methods + :class:`aiogram.methods.send_message.SendMessage`, + :class:`aiogram.methods.send_photo.SendPhoto`, + :class:`aiogram.methods.send_video.SendVideo`, + :class:`aiogram.methods.send_animation.SendAnimation`, + :class:`aiogram.methods.send_audio.SendAudio`, + :class:`aiogram.methods.send_document.SendDocument`, + :class:`aiogram.methods.send_paid_media.SendPaidMedia`, + :class:`aiogram.methods.send_sticker.SendSticker`, + :class:`aiogram.methods.send_video_note.SendVideoNote`, + :class:`aiogram.methods.send_voice.SendVoice`, + :class:`aiogram.methods.send_location.SendLocation`, + :class:`aiogram.methods.send_venue.SendVenue`, + :class:`aiogram.methods.send_contact.SendContact`, + :class:`aiogram.methods.send_poll.SendPoll`, + :class:`aiogram.methods.send_dice.SendDice`, + :class:`aiogram.methods.send_invoice.SendInvoice`, + :class:`aiogram.methods.send_game.SendGame`, + :class:`aiogram.methods.send_media_group.SendMediaGroup` + and :class:`aiogram.methods.copy_message.CopyMessage`. + - Added the class + :class:`aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi` + for transactions related to paid broadcasted messages. + - Introduced the ability to add media to existing text messages using the method + :class:`aiogram.methods.edit_message_media.EditMessageMedia`. + - Added support for hashtag and cashtag entities with a specified chat username + that opens a search for the relevant tag within the specified chat. + `#1601 `_ + + +Bugfixes +-------- + +- Fix PytestDeprecationWarning thrown by pytest-asyncio when running the tests + `#1584 `_ +- Fixed customized serialization in the :class:`aiogram.filters.callback_data.CallbackData` factory. + + From now UUID will have 32 bytes length instead of 36 bytes (with no `-` separators) in the callback data representation. + `#1602 `_ + + +Improved Documentation +---------------------- + +- Add missing closing tag for bold. + `#1599 `_ + + 3.13.1 (2024-09-18) ==================== diff --git a/CHANGES/1431.feature.rst b/CHANGES/1431.feature.rst deleted file mode 100644 index d47b69c4..00000000 --- a/CHANGES/1431.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Add function ``get_value`` to all built-in storage implementations, ``FSMContext`` and ``SceneWizard`` diff --git a/CHANGES/1583.feature.rst b/CHANGES/1583.feature.rst deleted file mode 100644 index e060762e..00000000 --- a/CHANGES/1583.feature.rst +++ /dev/null @@ -1,5 +0,0 @@ -Enhanced the inheritance of handlers and actions in :ref:`Scenes `. -Refactored to eliminate the copying of previously connected handlers and actions from parent scenes. -Now, handlers are dynamically rebuilt based on the current class, properly utilizing class inheritance and enabling handler overrides. - -That's mean that you can now override handlers and actions in the child scene, instead of copying and duplicating them. diff --git a/CHANGES/1584.bugfix.rst b/CHANGES/1584.bugfix.rst deleted file mode 100644 index 0e1c3a8c..00000000 --- a/CHANGES/1584.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix PytestDeprecationWarning thrown by pytest-asyncio when running the tests diff --git a/CHANGES/1586.misc.rst b/CHANGES/1586.misc.rst deleted file mode 100644 index 4a392ec3..00000000 --- a/CHANGES/1586.misc.rst +++ /dev/null @@ -1,6 +0,0 @@ -Added business_connection_id to the :class:`aiogram.types.message.Message` API methods shortcuts. - -Integrated the :code:`business_connection_id` attribute into various message manipulation methods, -ensuring consistent data handling. This update eliminates the need to pass the -:code:`business_connection_id` as a parameter, -instead directly accessing it from the instance attributes. diff --git a/CHANGES/1589.misc.rst b/CHANGES/1589.misc.rst deleted file mode 100644 index 80c531c8..00000000 --- a/CHANGES/1589.misc.rst +++ /dev/null @@ -1,16 +0,0 @@ -Checked compatibility with Python 3.13 (added to the CI/CD processes), -so now aiogram is totally compatible with it. - -Dropped compatibility with Python 3.8 due to this version being `EOL `_. - -.. warning:: - - In some cases you will need to have the installed compiler (Rust or C++) - to install some of the dependencies to compile packages from source on `pip install` command. - - - If you are using Windows, you will need to have the `Visual Studio `_ installed. - - If you are using Linux, you will need to have the `build-essential` package installed. - - If you are using macOS, you will need to have the `Xcode `_ installed. - - When developers of this dependencies will release new versions with precompiled wheels for Windows, Linux and macOS, - this action will not be necessary anymore until the next version of the Python interpreter. diff --git a/CHANGES/1599.doc.rst b/CHANGES/1599.doc.rst deleted file mode 100644 index 500578c8..00000000 --- a/CHANGES/1599.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Add missing closing tag for bold. diff --git a/CHANGES/1601.feature.rst b/CHANGES/1601.feature.rst deleted file mode 100644 index 3880ba5c..00000000 --- a/CHANGES/1601.feature.rst +++ /dev/null @@ -1,33 +0,0 @@ -Added full support of `Bot API 7.11 `_ - -- Added the class :class:`aiogram.types.copy_text_button.CopyTextButton` - and the field :code:`copy_text` in the class - :class:`aiogram.types.inline_keyboard_button.InlineKeyboardButton`, - allowing bots to send and receive inline buttons that copy arbitrary text. -- Added the parameter :code:`allow_paid_broadcast` to the methods - :class:`aiogram.methods.send_message.SendMessage`, - :class:`aiogram.methods.send_photo.SendPhoto`, - :class:`aiogram.methods.send_video.SendVideo`, - :class:`aiogram.methods.send_animation.SendAnimation`, - :class:`aiogram.methods.send_audio.SendAudio`, - :class:`aiogram.methods.send_document.SendDocument`, - :class:`aiogram.methods.send_paid_media.SendPaidMedia`, - :class:`aiogram.methods.send_sticker.SendSticker`, - :class:`aiogram.methods.send_video_note.SendVideoNote`, - :class:`aiogram.methods.send_voice.SendVoice`, - :class:`aiogram.methods.send_location.SendLocation`, - :class:`aiogram.methods.send_venue.SendVenue`, - :class:`aiogram.methods.send_contact.SendContact`, - :class:`aiogram.methods.send_poll.SendPoll`, - :class:`aiogram.methods.send_dice.SendDice`, - :class:`aiogram.methods.send_invoice.SendInvoice`, - :class:`aiogram.methods.send_game.SendGame`, - :class:`aiogram.methods.send_media_group.SendMediaGroup` - and :class:`aiogram.methods.copy_message.CopyMessage`. -- Added the class - :class:`aiogram.types.transaction_partner_telegram_api.TransactionPartnerTelegramApi` - for transactions related to paid broadcasted messages. -- Introduced the ability to add media to existing text messages using the method - :class:`aiogram.methods.edit_message_media.EditMessageMedia`. -- Added support for hashtag and cashtag entities with a specified chat username - that opens a search for the relevant tag within the specified chat. diff --git a/CHANGES/1602.bugfix.rst b/CHANGES/1602.bugfix.rst deleted file mode 100644 index 917d927c..00000000 --- a/CHANGES/1602.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fixed customized serialization in the :class:`aiogram.filters.callback_data.CallbackData` factory. - -From now UUID will have 32 bytes length instead of 36 bytes (with no `-` separators) in the callback data representation. diff --git a/README.rst b/README.rst index bd82af42..8f57418c 100644 --- a/README.rst +++ b/README.rst @@ -52,7 +52,7 @@ Features - Asynchronous (`asyncio docs `_, :pep:`492`) - Has type hints (:pep:`484`) and can be used with `mypy `_ - Supports `PyPy `_ -- Supports `Telegram Bot API 7.10 `_ and gets fast updates to the latest versions of the Bot API +- Supports `Telegram Bot API 7.11 `_ and gets fast updates to the latest versions of the Bot API - Telegram Bot API integration code was `autogenerated `_ and can be easily re-generated when API gets updated - Updates router (Blueprints) - Has Finite State Machine diff --git a/aiogram/__meta__.py b/aiogram/__meta__.py index 131af046..84135881 100644 --- a/aiogram/__meta__.py +++ b/aiogram/__meta__.py @@ -1,2 +1,2 @@ -__version__ = "3.13.1" -__api_version__ = "7.10" +__version__ = "3.14.0" +__api_version__ = "7.11"