diff --git a/CHANGES.rst b/CHANGES.rst index be4cb56e..9888246a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,6 +16,43 @@ Changelog .. towncrier release notes start +3.25.0 (2026-03-03) +==================== + +Bugfixes +-------- + +- Fixed scene transitions to preserve middleware-injected data when moving between scenes via ``SceneWizard.goto``. + `#1687 `_ +- Added ``icon_custom_emoji_id`` and ``style`` parameters to ``InlineKeyboardBuilder.button`` and ``ReplyKeyboardBuilder.button`` signatures. + `#1768 `_ +- Fixed Pydantic protected namespace warning for `model_custom_emoji_id` by adding `protected_namespaces=()` to `model_config`. + `#1772 `_ + + +Misc +---- + +- Documented webhook security constraints for proxy deployments, including trust requirements for :code:`X-Forwarded-For` and recommended defense-in-depth checks. + `#47 `_ +- Updated to `Bot API 9.5 `_ + + **New Methods:** + + - Added :class:`aiogram.methods.send_message_draft.SendMessageDraft` method - allowed for all bots to stream partial messages while they are being generated + - Added :class:`aiogram.methods.set_chat_member_tag.SetChatMemberTag` method - allows bots to set a custom tag for a chat member; available via :meth:`aiogram.types.chat.Chat.set_member_tag` shortcut + + **New Fields:** + + - Added :code:`date_time` type to :class:`aiogram.types.message_entity.MessageEntity` with :code:`unix_time` and :code:`date_time_format` fields - allows bots to display a formatted date and time to the user + - Added :code:`tag` field to :class:`aiogram.types.chat_member_member.ChatMemberMember` and :class:`aiogram.types.chat_member_restricted.ChatMemberRestricted` - the custom tag set for the chat member + - Added :code:`can_edit_tag` field to :class:`aiogram.types.chat_member_restricted.ChatMemberRestricted` and :class:`aiogram.types.chat_permissions.ChatPermissions` - indicates whether the user is allowed to edit their own tag + - Added :code:`can_manage_tags` field to :class:`aiogram.types.chat_member_administrator.ChatMemberAdministrator` and :class:`aiogram.types.chat_administrator_rights.ChatAdministratorRights` - indicates whether the administrator can manage tags of other chat members + - Added :code:`can_manage_tags` parameter to :class:`aiogram.methods.promote_chat_member.PromoteChatMember` method + - Added :code:`sender_tag` field to :class:`aiogram.types.message.Message` - the tag of the message sender in the chat + `#1780 `_ + + 3.25.0 (2026-02-10) ==================== diff --git a/CHANGES/1687.bugfix.rst b/CHANGES/1687.bugfix.rst deleted file mode 100644 index 9fac31c9..00000000 --- a/CHANGES/1687.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed scene transitions to preserve middleware-injected data when moving between scenes via ``SceneWizard.goto``. diff --git a/CHANGES/1768.bugfix.rst b/CHANGES/1768.bugfix.rst deleted file mode 100644 index 4b8c94bf..00000000 --- a/CHANGES/1768.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Added ``icon_custom_emoji_id`` and ``style`` parameters to ``InlineKeyboardBuilder.button`` and ``ReplyKeyboardBuilder.button`` signatures. diff --git a/CHANGES/1772.bugfix.rst b/CHANGES/1772.bugfix.rst deleted file mode 100644 index 084915d0..00000000 --- a/CHANGES/1772.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed Pydantic protected namespace warning for `model_custom_emoji_id` by adding `protected_namespaces=()` to `model_config`. diff --git a/CHANGES/1780.misc.rst b/CHANGES/1780.misc.rst deleted file mode 100644 index 6037a9d7..00000000 --- a/CHANGES/1780.misc.rst +++ /dev/null @@ -1,15 +0,0 @@ -Updated to `Bot API 9.5 `_ - -**New Methods:** - -- Added :class:`aiogram.methods.send_message_draft.SendMessageDraft` method - allowed for all bots to stream partial messages while they are being generated -- Added :class:`aiogram.methods.set_chat_member_tag.SetChatMemberTag` method - allows bots to set a custom tag for a chat member; available via :meth:`aiogram.types.chat.Chat.set_member_tag` shortcut - -**New Fields:** - -- Added :code:`date_time` type to :class:`aiogram.types.message_entity.MessageEntity` with :code:`unix_time` and :code:`date_time_format` fields - allows bots to display a formatted date and time to the user -- Added :code:`tag` field to :class:`aiogram.types.chat_member_member.ChatMemberMember` and :class:`aiogram.types.chat_member_restricted.ChatMemberRestricted` - the custom tag set for the chat member -- Added :code:`can_edit_tag` field to :class:`aiogram.types.chat_member_restricted.ChatMemberRestricted` and :class:`aiogram.types.chat_permissions.ChatPermissions` - indicates whether the user is allowed to edit their own tag -- Added :code:`can_manage_tags` field to :class:`aiogram.types.chat_member_administrator.ChatMemberAdministrator` and :class:`aiogram.types.chat_administrator_rights.ChatAdministratorRights` - indicates whether the administrator can manage tags of other chat members -- Added :code:`can_manage_tags` parameter to :class:`aiogram.methods.promote_chat_member.PromoteChatMember` method -- Added :code:`sender_tag` field to :class:`aiogram.types.message.Message` - the tag of the message sender in the chat diff --git a/CHANGES/47.misc.rst b/CHANGES/47.misc.rst deleted file mode 100644 index c895c16f..00000000 --- a/CHANGES/47.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Documented webhook security constraints for proxy deployments, including trust requirements for :code:`X-Forwarded-For` and recommended defense-in-depth checks.