From 7efec4a5df5ab41f1bfde89ed5074767a8620a13 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 18 Feb 2023 15:54:31 +0200 Subject: [PATCH] Towncrier build --- CHANGES.rst | 100 +++++++++++++++++++++++++++++++++++++++ CHANGES/1069.misc.rst | 1 - CHANGES/1088.misc.rst | 1 - CHANGES/1091.feature.rst | 1 - CHANGES/1095.misc.rst | 1 - CHANGES/1106.bugfix.rst | 1 - CHANGES/1112.misc.rst | 6 --- CHANGES/1114.misc.rst | 2 - CHANGES/1117.feature.rst | 1 - CHANGES/1120.misc.rst | 1 - CHANGES/1124.misc.rst | 2 - CHANGES/816.bugfix.rst | 1 - CHANGES/952.feature.rst | 52 -------------------- pyproject.toml | 1 + 14 files changed, 101 insertions(+), 70 deletions(-) delete mode 100644 CHANGES/1069.misc.rst delete mode 100644 CHANGES/1088.misc.rst delete mode 100644 CHANGES/1091.feature.rst delete mode 100644 CHANGES/1095.misc.rst delete mode 100644 CHANGES/1106.bugfix.rst delete mode 100644 CHANGES/1112.misc.rst delete mode 100644 CHANGES/1114.misc.rst delete mode 100644 CHANGES/1117.feature.rst delete mode 100644 CHANGES/1120.misc.rst delete mode 100644 CHANGES/1124.misc.rst delete mode 100644 CHANGES/816.bugfix.rst delete mode 100644 CHANGES/952.feature.rst diff --git a/CHANGES.rst b/CHANGES.rst index 86ad5552..048d5509 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,6 +16,106 @@ Changelog .. towncrier release notes start +3.0.0b7 (2023-02-18) +===================== + +Features +-------- + +- Added missing shortcuts, new enums, reworked old stuff + + **Breaking** + All previously added enums is re-generated in new place - `aiogram.enums` instead of `aiogram.types` + + **Added enums:** :class:`aiogram.enums.bot_command_scope_type.BotCommandScopeType`, + :class:`aiogram.enums.chat_action.ChatAction`, + :class:`aiogram.enums.chat_member_status.ChatMemberStatus`, + :class:`aiogram.enums.chat_type.ChatType`, + :class:`aiogram.enums.content_type.ContentType`, + :class:`aiogram.enums.dice_emoji.DiceEmoji`, + :class:`aiogram.enums.inline_query_result_type.InlineQueryResultType`, + :class:`aiogram.enums.input_media_type.InputMediaType`, + :class:`aiogram.enums.mask_position_point.MaskPositionPoint`, + :class:`aiogram.enums.menu_button_type.MenuButtonType`, + :class:`aiogram.enums.message_entity_type.MessageEntityType`, + :class:`aiogram.enums.parse_mode.ParseMode`, + :class:`aiogram.enums.poll_type.PollType`, + :class:`aiogram.enums.sticker_type.StickerType`, + :class:`aiogram.enums.topic_icon_color.TopicIconColor`, + :class:`aiogram.enums.update_type.UpdateType`, + + **Added shortcuts**: + + - *Chat* :meth:`aiogram.types.chat.Chat.get_administrators`, + :meth:`aiogram.types.chat.Chat.delete_message`, + :meth:`aiogram.types.chat.Chat.revoke_invite_link`, + :meth:`aiogram.types.chat.Chat.edit_invite_link`, + :meth:`aiogram.types.chat.Chat.create_invite_link`, + :meth:`aiogram.types.chat.Chat.export_invite_link`, + :meth:`aiogram.types.chat.Chat.do`, + :meth:`aiogram.types.chat.Chat.delete_sticker_set`, + :meth:`aiogram.types.chat.Chat.set_sticker_set`, + :meth:`aiogram.types.chat.Chat.get_member`, + :meth:`aiogram.types.chat.Chat.get_member_count`, + :meth:`aiogram.types.chat.Chat.leave`, + :meth:`aiogram.types.chat.Chat.unpin_all_messages`, + :meth:`aiogram.types.chat.Chat.unpin_message`, + :meth:`aiogram.types.chat.Chat.pin_message`, + :meth:`aiogram.types.chat.Chat.set_administrator_custom_title`, + :meth:`aiogram.types.chat.Chat.set_permissions`, + :meth:`aiogram.types.chat.Chat.promote`, + :meth:`aiogram.types.chat.Chat.restrict`, + :meth:`aiogram.types.chat.Chat.unban`, + :meth:`aiogram.types.chat.Chat.ban`, + :meth:`aiogram.types.chat.Chat.set_description`, + :meth:`aiogram.types.chat.Chat.set_title`, + :meth:`aiogram.types.chat.Chat.delete_photo`, + :meth:`aiogram.types.chat.Chat.set_photo`, + - *Sticker*: :meth:`aiogram.types.sticker.Sticker.set_position_in_set`, + :meth:`aiogram.types.sticker.Sticker.delete_from_set`, + - *User*: :meth:`aiogram.types.user.User.get_profile_photos` + `#952 `_ +- Added :ref:`callback answer ` feature + `#1091 `_ +- Added a method that allows you to compactly register routers + `#1117 `_ + + +Bugfixes +-------- + +- Check status code when downloading file + `#816 `_ +- Fixed `ignore_case` parameter in :obj:`aiogram.filters.command.Command` filter + `#1106 `_ + + +Misc +---- + +- Added integration with new code-generator named `Butcher `_ + `#1069 `_ +- Added full support of `Bot API 6.4 `_ + `#1088 `_ +- Updated package metadata, moved build internals from Poetry to Hatch, added contributing guides. + `#1095 `_ +- Added full support of `Bot API 6.5 `_ + + .. danger:: + + Note that :obj:`aiogram.types.chat_permissions.ChatPermissions` is updated without + backward compatibility, so now this object has no :code:`can_send_media_messages` attribute + `#1112 `_ +- Replaced error :code:`TypeError: TelegramEventObserver.__call__() got an unexpected keyword argument ''` + with a more understandable one for developers and with a link to the documentation. + `#1114 `_ +- Added possibility to reply into webhook with files + `#1120 `_ +- Reworked graceful shutdown. Added method to stop polling. + Now polling started from dispatcher can be stopped by signals gracefully without errors (on Linux and Mac). + `#1124 `_ + + 3.0.0b6 (2022-11-18) ===================== diff --git a/CHANGES/1069.misc.rst b/CHANGES/1069.misc.rst deleted file mode 100644 index a5a1730b..00000000 --- a/CHANGES/1069.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Added integration with new code-generator named `Butcher `_ diff --git a/CHANGES/1088.misc.rst b/CHANGES/1088.misc.rst deleted file mode 100644 index 2671fbed..00000000 --- a/CHANGES/1088.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Added full support of `Bot API 6.4 `_ diff --git a/CHANGES/1091.feature.rst b/CHANGES/1091.feature.rst deleted file mode 100644 index b3e773ce..00000000 --- a/CHANGES/1091.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Added :ref:`callback answer ` feature diff --git a/CHANGES/1095.misc.rst b/CHANGES/1095.misc.rst deleted file mode 100644 index 87de48c8..00000000 --- a/CHANGES/1095.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Updated package metadata, moved build internals from Poetry to Hatch, added contributing guides. diff --git a/CHANGES/1106.bugfix.rst b/CHANGES/1106.bugfix.rst deleted file mode 100644 index 54b60843..00000000 --- a/CHANGES/1106.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed `ignore_case` parameter in :obj:`aiogram.filters.command.Command` filter diff --git a/CHANGES/1112.misc.rst b/CHANGES/1112.misc.rst deleted file mode 100644 index ad78adc3..00000000 --- a/CHANGES/1112.misc.rst +++ /dev/null @@ -1,6 +0,0 @@ -Added full support of `Bot API 6.5 `_ - -.. danger:: - - Note that :obj:`aiogram.types.chat_permissions.ChatPermissions` is updated without - backward compatibility, so now this object has no :code:`can_send_media_messages` attribute diff --git a/CHANGES/1114.misc.rst b/CHANGES/1114.misc.rst deleted file mode 100644 index ba1661ae..00000000 --- a/CHANGES/1114.misc.rst +++ /dev/null @@ -1,2 +0,0 @@ -Replaced error :code:`TypeError: TelegramEventObserver.__call__() got an unexpected keyword argument ''` -with a more understandable one for developers and with a link to the documentation. diff --git a/CHANGES/1117.feature.rst b/CHANGES/1117.feature.rst deleted file mode 100644 index cdcf0999..00000000 --- a/CHANGES/1117.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Added a method that allows you to compactly register routers \ No newline at end of file diff --git a/CHANGES/1120.misc.rst b/CHANGES/1120.misc.rst deleted file mode 100644 index 820b2b01..00000000 --- a/CHANGES/1120.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Added possibility to reply into webhook with files diff --git a/CHANGES/1124.misc.rst b/CHANGES/1124.misc.rst deleted file mode 100644 index 4a6e6221..00000000 --- a/CHANGES/1124.misc.rst +++ /dev/null @@ -1,2 +0,0 @@ -Reworked graceful shutdown. Added method to stop polling. -Now polling started from dispatcher can be stopped by signals gracefully without errors (on Linux and Mac). diff --git a/CHANGES/816.bugfix.rst b/CHANGES/816.bugfix.rst deleted file mode 100644 index 22bfee8c..00000000 --- a/CHANGES/816.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Check status code when downloading file diff --git a/CHANGES/952.feature.rst b/CHANGES/952.feature.rst deleted file mode 100644 index fb206222..00000000 --- a/CHANGES/952.feature.rst +++ /dev/null @@ -1,52 +0,0 @@ -Added missing shortcuts, new enums, reworked old stuff - -**Breaking** -All previously added enums is re-generated in new place - `aiogram.enums` instead of `aiogram.types` - -**Added enums:** :class:`aiogram.enums.bot_command_scope_type.BotCommandScopeType`, - :class:`aiogram.enums.chat_action.ChatAction`, - :class:`aiogram.enums.chat_member_status.ChatMemberStatus`, - :class:`aiogram.enums.chat_type.ChatType`, - :class:`aiogram.enums.content_type.ContentType`, - :class:`aiogram.enums.dice_emoji.DiceEmoji`, - :class:`aiogram.enums.inline_query_result_type.InlineQueryResultType`, - :class:`aiogram.enums.input_media_type.InputMediaType`, - :class:`aiogram.enums.mask_position_point.MaskPositionPoint`, - :class:`aiogram.enums.menu_button_type.MenuButtonType`, - :class:`aiogram.enums.message_entity_type.MessageEntityType`, - :class:`aiogram.enums.parse_mode.ParseMode`, - :class:`aiogram.enums.poll_type.PollType`, - :class:`aiogram.enums.sticker_type.StickerType`, - :class:`aiogram.enums.topic_icon_color.TopicIconColor`, - :class:`aiogram.enums.update_type.UpdateType`, - -**Added shortcuts**: - -- *Chat* :meth:`aiogram.types.chat.Chat.get_administrators`, - :meth:`aiogram.types.chat.Chat.delete_message`, - :meth:`aiogram.types.chat.Chat.revoke_invite_link`, - :meth:`aiogram.types.chat.Chat.edit_invite_link`, - :meth:`aiogram.types.chat.Chat.create_invite_link`, - :meth:`aiogram.types.chat.Chat.export_invite_link`, - :meth:`aiogram.types.chat.Chat.do`, - :meth:`aiogram.types.chat.Chat.delete_sticker_set`, - :meth:`aiogram.types.chat.Chat.set_sticker_set`, - :meth:`aiogram.types.chat.Chat.get_member`, - :meth:`aiogram.types.chat.Chat.get_member_count`, - :meth:`aiogram.types.chat.Chat.leave`, - :meth:`aiogram.types.chat.Chat.unpin_all_messages`, - :meth:`aiogram.types.chat.Chat.unpin_message`, - :meth:`aiogram.types.chat.Chat.pin_message`, - :meth:`aiogram.types.chat.Chat.set_administrator_custom_title`, - :meth:`aiogram.types.chat.Chat.set_permissions`, - :meth:`aiogram.types.chat.Chat.promote`, - :meth:`aiogram.types.chat.Chat.restrict`, - :meth:`aiogram.types.chat.Chat.unban`, - :meth:`aiogram.types.chat.Chat.ban`, - :meth:`aiogram.types.chat.Chat.set_description`, - :meth:`aiogram.types.chat.Chat.set_title`, - :meth:`aiogram.types.chat.Chat.delete_photo`, - :meth:`aiogram.types.chat.Chat.set_photo`, -- *Sticker*: :meth:`aiogram.types.sticker.Sticker.set_position_in_set`, - :meth:`aiogram.types.sticker.Sticker.delete_from_set`, -- *User*: :meth:`aiogram.types.user.User.get_profile_photos` diff --git a/pyproject.toml b/pyproject.toml index 45809b52..3855ca10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,6 +97,7 @@ dev = [ "mypy~=1.0.0", "toml~=0.10.2", "pre-commit~=3.0.4", + "towncrier~=22.12.0", "packaging~=23.0", "typing-extensions~=4.4.0", ]