Releases: pylakey/aiotdlib
0.24.3
0.24.2
Full Changelog: 0.24.1...0.24.2
0.24.1
- The predefined values of ClientOptions are now being set up properly.
Full Changelog: 0.24.0...0.24.1
0.24.0 - TDLib 1.8.31
- TDLib version upgraded to 1.8.31. If you use self-built TDLib binaries, you should update them to
the supported version.
Full Changelog: 0.23.3...0.24.0
0.23.4
- All updates handlers now are called asynchronously in background. It allows making another requests in updates handlers.
Full Changelog: 0.23.3...0.23.4
0.23.3
- Fixed blocking authorization flow
Full Changelog: 0.23.2...0.23.3
0.23.2
- Ignore extra env variables in ClientSettings
Full Changelog: 0.23.1...0.23.2
0.23.1
0.23.0 - TDLib 1.8.30, Pydantic V2, Multiple Client instances
This update may contain breaking changes in some scenarios, please read carefully and update your code accordingly
!! BREAKING CHANGES !!
-
TDLib version upgraded to 1.8.30. If you use self-built TDLib binaries, you should update them to the supported version.
-
Now library supports only Pydantic v2. If you use Pydantic v1, you should upgrade it to v2. You can follow migration
guide here -
The client now accepts a single parameter of type ClientSettings. This parameter is optional. If it is omitted, default settings will be used, with parameters filled from environment variables. Look for README.md for more information.
-
ClientProxyType
is moved toaiotdlib.client_settings
module -
ClientParseMode
is moved toaiotdlib.client_settings
module -
ClientProxySettings
is moved toaiotdlib.client_settings
module -
ClientOptions
is moved toaiotdlib.client_settings
module -
ClientSettings
is moved toaiotdlib.client_settings
module -
Some of the fields in API types and functions now have default values (ESPECIALLY BOOLEANS). Make sure it won't break your code and update it accordingly. Feel free to open any pull request to fix this problem in types generator.
Added
- Now you can create multiple Client instances in a single process using the same TD instance. Thanks to @truenicoco for helping us move in this direction!
Removed
- Now client logger follows default log level and can be changed directly with
logging.getLogger(...)
. Client logger name now follows pattern "Client_{client_id}"
Updated
-
The client settings have been updated to set default properties such as 'enable_storage_optimizer' and 'ignore_file_names'. The handling of setting options has been improved to support setting options with None values. Event registration in the client cache has been refactored to provide clearer semantics and easier removal of event handlers. Logging and handling of updates have also been refined to catch and handle exceptions more effectively.
-
Minor fixes and improvements
0.22.0
What's Changed
Breaking Changes
In this release added a check of Pydantic version. If you have Pydantic v2 and higher NotImplementedError
will be raised.
This version of library will be the last one with Pydantic v1 support.
Full Changelog: 0.21.0...0.22.0