pub async fn close(client_id: i32) -> Result<(), Error>
Expand description
Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization
ยงArguments
client_id
- The client id to send the request to