- Improved multi-client support with
client::ClientAuthStateHandler - added
client::AuthStateHandlerProxy, deprecation of all other existingclient::AuthStateHandlerimplementations - fixed #15
- Added a way to be authenticated as a bot.
client::auth_state_handler::ClientIdentifieris used to determine the client: a bot with a token or "a human" with a phone number. - Provided
client::worker::Worker::reload_client. May be useful if you want to remove clean memory gained by internal tdlib routines. Fixed #19.
- Fix serde rename for all types instead of just deserialize #17
- Support for tdlib 1.8.0.
errors::RTDErroranderrors::RTDResultare deprecated, useerrors::Erroranderrors::Resultinstead.RTD{Type}Buildertypes are deprecated, use{Type}Builderinstead.- Several enum variants (for example
Update::NewChat) are boxed now to reduce total size of enums. - A lot of internal optimizations.
- New methods to handle and observe client state changes:
Worker::get_client_state,Worker::reset_auth,Worker::wait_auth_state_change,Worker::wait_client_state. Seeexamples/handle_auth_state.rsfor details. JoinHandlereturned byWorker::startnow yields empty tuple.Worker::auth_clientrenamed toWorker::bind_clientand does not returnJoinHandle.SignalAuthStateHandleradded.ClientStatenow does not containErrorvariant,Authorizingvariant added.RTDError::TdlibError(String)changed toRTDError::TDLibError(rust_tdlib::types::error::Error).
- Fixed enums serializing
- Readme fixes
- Fixed stack overflow error
- Support for tdlib 1.7.0
- API changed because of need for support multiple clients: you can create multiple clients and bind it with one worker. See examples/main.rs for details.
- Updates received with tokio::mpsc::channel are exactly types::Update instead of types::TdType.
- Minor fixes and improvements.
- Fixed with_auth_state_handler for ClientBuilder.
- Documentation improvements.
- Improvements for docs.rs
clientfeature enabled by default- possibility to write tdlib logs added
Initial library version.