Skip to content

Commit 84940a7

Browse files
chore: release v0.2.0
1 parent fad4b1f commit 84940a7

19 files changed

+61
-19
lines changed

NEWS.rst

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,66 @@ Changelog
1515

1616
.. towncrier release notes start
1717
18+
0.2.0 (2024-06-30)
19+
===================
20+
21+
Deprecations and Removals
22+
-------------------------
23+
24+
- Removed the `async-to-sync` wrapper, making the library fully asynchronous.
25+
- Removed the `emoji` submodule. Please try out the `emoji` package from PyPI.
26+
27+
Features
28+
--------
29+
30+
- Integrate pyromod patches into the project (many thanks to @usernein for his excellent work). To check out the pyromod specific features, have a look at https://pyromod.pauxis.dev/.
31+
You can use the features in the same way as in pyromod, except that you import them directly from the hydrogram package.
32+
`#1 <https://github.com/hydrogram/hydrogram/issues/1>`_
33+
- Changed the minimum required version of Python to 3.9 and integrated the newest Python type hints.
34+
`#5 <https://github.com/hydrogram/hydrogram/issues/5>`_
35+
- Added the attribute `is_participants_hidden` to the `Chat` type. If the list of members is hidden, `True` will be returned; otherwise, `False` will be returned.
36+
`#11 <https://github.com/hydrogram/hydrogram/issues/11>`_
37+
- Allowed the use of filters.{private,group,channel} in callback queries.
38+
`#32 <https://github.com/hydrogram/hydrogram/issues/32>`_
39+
- Added the `ChatBackground` type and the `background` field for the `Chat` object.
40+
`#33 <https://github.com/hydrogram/hydrogram/issues/33>`_
41+
- Added support for error handlers.
42+
`#38 <https://github.com/hydrogram/hydrogram/issues/38>`_
43+
44+
45+
Bugfixes
46+
--------
47+
48+
- Fixed `Message.is_scheduled` field being always `False` when parsing `UpdateNewScheduledMessage`.
49+
`#14 <https://github.com/hydrogram/hydrogram/issues/14>`_
50+
- Fixed an issue with the bool parsing of the raw api that was causing the wrong value to be returned.
51+
`#20 <https://github.com/hydrogram/hydrogram/issues/20>`_
52+
- Make the quiz explanation an optional parameter.
53+
`#21 <https://github.com/hydrogram/hydrogram/issues/21>`_
54+
- Support newly-created chats by increating `MIN_CHANNEL_ID` and `MIN_CHAT_ID`.
55+
`#25 <https://github.com/hydrogram/hydrogram/issues/25>`_
56+
57+
58+
Improved Documentation
59+
----------------------
60+
61+
- Added a tool to extract documentation parameters from the Telegram documentation, allowing us to self-host raw API documentation.
62+
`#34 <https://github.com/hydrogram/hydrogram/issues/34>`_
63+
64+
65+
Misc
66+
----
67+
68+
- Make `Message._parse` accept only keyword-only arguments.
69+
`#14 <https://github.com/hydrogram/hydrogram/issues/14>`_
70+
- Added `if TYPE_CHECKING` to import modules for type checking only when needed. This flag avoids importing modules that are not needed for runtime execution. This change reduces the number of imports in the module and improves the performance of the code.
71+
`#24 <https://github.com/hydrogram/hydrogram/issues/24>`_
72+
- Added the `from __future__ import annotations` statement to the codebase in order to simplify the usage of the typing module. This statement allows for the use of forward references in type hints, which can improve code readability and maintainability.
73+
`#24 <https://github.com/hydrogram/hydrogram/issues/24>`_
74+
- Various fixes, improvements and micro-optimizations.
75+
76+
77+
1878
0.1.4 (2023-12-04)
1979
===================
2080

hydrogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# You should have received a copy of the GNU Lesser General Public License
1818
# along with Hydrogram. If not, see <http://www.gnu.org/licenses/>.
1919

20-
__version__ = "0.1.4"
20+
__version__ = "0.2.0"
2121
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
2222
__copyright__ = "Copyright (C) 2023-present Hydrogram <https://hydrogram.org>"
2323

news/+emoji.removal.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/+misc.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/+sync.removal.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/1.feature.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

news/11.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/14.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/14.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/20.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)