Releases: hydrogram/hydrogram
Releases · hydrogram/hydrogram
v0.2.0 - General housekeeping
Deprecations and Removals
- Removed the
async-to-syncwrapper, making the library fully asynchronous. - Removed the
emojisubmodule. Please try out theemojipackage from PyPI.
Features
- 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/. You can use the features in the same way as in pyromod, except that you import them directly from the hydrogram package. #1
- Changed the minimum required version of Python to 3.9 and integrated the newest Python type hints. #5
- Added the attribute
is_participants_hiddento theChattype. If the list of members is hidden,Truewill be returned; otherwise,Falsewill be returned. #11 - Allowed the use of filters.{private,group,channel} in callback queries. #32
- Added the
ChatBackgroundtype and thebackgroundfield for theChatobject. #33 - Added support for error handlers. #38
Bugfixes
- Fixed
Message.is_scheduledfield being alwaysFalsewhen parsingUpdateNewScheduledMessage. #14 - Fixed an issue with the bool parsing of the raw api that was causing the wrong value to be returned. #20
- Make the quiz explanation an optional parameter. #21
- Support newly-created chats by increating
MIN_CHANNEL_IDandMIN_CHAT_ID. #25
Improved Documentation
- Added a tool to extract documentation parameters from the Telegram documentation, allowing us to self-host raw API documentation. #34
Misc
- Make
Message._parseaccept only keyword-only arguments. #14 - Added
if TYPE_CHECKINGto 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. #24 - Added the
from __future__ import annotationsstatement 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. #24 - Various fixes, improvements and micro-optimizations.
New Contributors
- @wulan17 made their first contribution in #14
- @M4hbod made their first contribution in #16
- @tangyoha made their first contribution in #15
- @Midblyte made their first contribution in #21
- @SpEcHiDe made their first contribution in #25
- @Eikosa made their first contribution in #30
- @2ei made their first contribution in #33
- @usernein made their first contribution in #7
v0.1.4 - Misc fixes
v0.1.3 - Fix handle_download file name
Bugfixes
- Fix handle_download file name (#3)
v0.1.2 - Fix save_file bug
Bugfixes
- Fix save_file reporting size as 0
v0.1.1 - Fixup for PyPI
Fixup release that fixes our logo url in PyPI.
v0.1.0 - First public release
Initial project release. To see all changes and improvements compared to Pyrogram, see Hydrogram vs Pyrogram.