Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 2.35 KB

File metadata and controls

53 lines (43 loc) · 2.35 KB

CHANGELOG

0.4.3

  • Improved multi-client support with client::ClientAuthStateHandler
  • added client::AuthStateHandlerProxy, deprecation of all other existing client::AuthStateHandler implementations
  • fixed #15

0.4.2

  • Added a way to be authenticated as a bot. client::auth_state_handler::ClientIdentifier is 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.

0.4.1

  • Fix serde rename for all types instead of just deserialize #17

0.4.0

  • Support for tdlib 1.8.0.
  • errors::RTDError and errors::RTDResult are deprecated, use errors::Error and errors::Result instead.
  • RTD{Type}Builder types are deprecated, use {Type}Builder instead.
  • Several enum variants (for example Update::NewChat) are boxed now to reduce total size of enums.
  • A lot of internal optimizations.

0.3.0

  • 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. See examples/handle_auth_state.rs for details.
  • JoinHandle returned by Worker::start now yields empty tuple.
  • Worker::auth_client renamed to Worker::bind_client and does not return JoinHandle.
  • SignalAuthStateHandler added.
  • ClientState now does not contain Error variant, Authorizing variant added.
  • RTDError::TdlibError(String) changed to RTDError::TDLibError(rust_tdlib::types::error::Error).

0.2.3

  • Fixed enums serializing

0.2.1

  • Readme fixes
  • Fixed stack overflow error

0.2.0

  • 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.

0.1.2

  • Fixed with_auth_state_handler for ClientBuilder.
  • Documentation improvements.

0.1.1

  • Improvements for docs.rs
  • client feature enabled by default
  • possibility to write tdlib logs added

0.1.0

Initial library version.