Save session
This commit is contained in:
parent
86bfce8481
commit
9993e52e0d
|
@ -56,6 +56,9 @@ async fn async_main() {
|
|||
.await
|
||||
.expect("Failed to sign 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();
|
||||
|
|
Loading…
Reference in New Issue