From 9993e52e0d619585ad054f67a7275857866a40c0 Mon Sep 17 00:00:00 2001 From: blank X Date: Tue, 22 Jun 2021 12:00:01 +0700 Subject: [PATCH] Save session --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index a24406e..9ac99bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();