Function get_current_state

Source
pub async fn get_current_state(client_id: i32) -> Result<Updates, Error>
Expand description

Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization

ยงArguments

  • client_id - The client id to send the request to