Save session

This commit is contained in:
blank X 2021-06-22 12:00:01 +07:00
parent 86bfce8481
commit 9993e52e0d
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ async fn async_main() {
.await .await
.expect("Failed to sign in"); .expect("Failed to sign in");
println!("Signed in"); println!("Signed in");
if let Err(err) = tclient.session().save_to_file("autoytarchivers.session") {
eprintln!("Failed to save session: {:?}", err);
}
} }
{ {
let tclient = tclient.clone(); let tclient = tclient.clone();