From 6ad287c329669bdd62be53b4fbfed48afdbff227 Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Wed, 24 Apr 2024 22:14:34 +0300 Subject: [PATCH] Bump changelog --- CHANGES.rst | 55 ++++++++++++++++++++++++++++++++++++++++ CHANGES/1424.bugfix.rst | 5 ---- CHANGES/1433.doc.rst | 1 - CHANGES/1436.bugfix.rst | 1 - CHANGES/1437.feature.rst | 1 - CHANGES/1444.misc.rst | 1 - CHANGES/1458.bugfix.rst | 2 -- CHANGES/1460.misc.rst | 1 - CHANGES/1468.feature.rst | 13 ---------- 9 files changed, 55 insertions(+), 25 deletions(-) delete mode 100644 CHANGES/1424.bugfix.rst delete mode 100644 CHANGES/1433.doc.rst delete mode 100644 CHANGES/1436.bugfix.rst delete mode 100644 CHANGES/1437.feature.rst delete mode 100644 CHANGES/1444.misc.rst delete mode 100644 CHANGES/1458.bugfix.rst delete mode 100644 CHANGES/1460.misc.rst delete mode 100644 CHANGES/1468.feature.rst diff --git a/CHANGES.rst b/CHANGES.rst index 2dded341dd..b6f9bff5e4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,6 +16,61 @@ Changelog .. towncrier release notes start +3.5.0 (2024-04-23) +=================== + +Features +-------- + +- Added **message_thread_id** parameter to **ChatActionSender** class methods. + `#1437 `_ +- Added context manager interface to Bot instance, from now you can use: + + .. code-block:: python + + async with Bot(...) as bot: + ... + + instead of + + .. code-block:: python + + async with Bot(...).context() as bot: + ... + `#1468 `_ + + +Bugfixes +-------- + +- - **WebAppUser Class Fields**: Added missing `is_premium`, `added_to_attachment_menu`, and `allows_write_to_pm` fields to `WebAppUser` class to align with the Telegram API. + + - **WebAppChat Class Implementation**: Introduced the `WebAppChat` class with all its fields (`id`, `type`, `title`, `username`, and `photo_url`) as specified in the Telegram API, which was previously missing from the library. + + - **WebAppInitData Class Fields**: Included previously omitted fields in the `WebAppInitData` class: `chat`, `chat_type`, `chat_instance`, to match the official documentation for a complete Telegram Web Apps support. + `#1424 `_ +- Fixed poll answer FSM context by handling :code:`voter_chat` for :code:`poll_answer` event + `#1436 `_ +- Added missing error handling to :code:`_background_feed_update` (when in :code:`handle_in_background=True` webhook mode) + `#1458 `_ + + +Improved Documentation +---------------------- + +- Added WebAppChat class to WebApp docs, updated uk_UA localisation of WebApp docs. + `#1433 `_ + + +Misc +---- + +- Added full support of `Bot API 7.2 `_ + `#1444 `_ +- Loosened pydantic version upper restriction from ``<2.7`` to ``<2.8`` + `#1460 `_ + + 3.4.1 (2024-02-17) =================== diff --git a/CHANGES/1424.bugfix.rst b/CHANGES/1424.bugfix.rst deleted file mode 100644 index 3055f50d7a..0000000000 --- a/CHANGES/1424.bugfix.rst +++ /dev/null @@ -1,5 +0,0 @@ -- **WebAppUser Class Fields**: Added missing `is_premium`, `added_to_attachment_menu`, and `allows_write_to_pm` fields to `WebAppUser` class to align with the Telegram API. - -- **WebAppChat Class Implementation**: Introduced the `WebAppChat` class with all its fields (`id`, `type`, `title`, `username`, and `photo_url`) as specified in the Telegram API, which was previously missing from the library. - -- **WebAppInitData Class Fields**: Included previously omitted fields in the `WebAppInitData` class: `chat`, `chat_type`, `chat_instance`, to match the official documentation for a complete Telegram Web Apps support. diff --git a/CHANGES/1433.doc.rst b/CHANGES/1433.doc.rst deleted file mode 100644 index 781304bba4..0000000000 --- a/CHANGES/1433.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Added WebAppChat class to WebApp docs, updated uk_UA localisation of WebApp docs. \ No newline at end of file diff --git a/CHANGES/1436.bugfix.rst b/CHANGES/1436.bugfix.rst deleted file mode 100644 index defb7d3704..0000000000 --- a/CHANGES/1436.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed poll answer FSM context by handling :code:`voter_chat` for :code:`poll_answer` event diff --git a/CHANGES/1437.feature.rst b/CHANGES/1437.feature.rst deleted file mode 100644 index e095f4e537..0000000000 --- a/CHANGES/1437.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Added **message_thread_id** parameter to **ChatActionSender** class methods. \ No newline at end of file diff --git a/CHANGES/1444.misc.rst b/CHANGES/1444.misc.rst deleted file mode 100644 index 35e82ca923..0000000000 --- a/CHANGES/1444.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Added full support of `Bot API 7.2 `_ diff --git a/CHANGES/1458.bugfix.rst b/CHANGES/1458.bugfix.rst deleted file mode 100644 index 3b986d824b..0000000000 --- a/CHANGES/1458.bugfix.rst +++ /dev/null @@ -1,2 +0,0 @@ -Added missing error handling to :code:`_background_feed_update` (when in :code:`handle_in_background=True` webhook mode) - diff --git a/CHANGES/1460.misc.rst b/CHANGES/1460.misc.rst deleted file mode 100644 index 01154342a9..0000000000 --- a/CHANGES/1460.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Loosened pydantic version upper restriction from ``<2.7`` to ``<2.8``4.4 diff --git a/CHANGES/1468.feature.rst b/CHANGES/1468.feature.rst deleted file mode 100644 index de78716c00..0000000000 --- a/CHANGES/1468.feature.rst +++ /dev/null @@ -1,13 +0,0 @@ -Added context manager interface to Bot instance, from now you can use: - -.. code-block:: python - - async with Bot(...) as bot: - ... - -instead of - -.. code-block:: python - - async with Bot(...).context(): - ...