Actually ping telegram again

This commit is contained in:
blank X 2021-06-26 15:47:24 +07:00
parent 55420793e6
commit 5b18b3e6d2
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ async fn async_main() {
}
Err(err) => eprintln!("Failed to get seen videos message: {:?}", err),
};
// Pings are sent when stepping
tokio::task::spawn(tclient.clone().run_until_disconnected());
let seen_videos = Arc::new(RwLock::new(seen_videos.unwrap_or_default()));
let tmp_handled = Arc::new(Mutex::new(HashSet::new()));
let video_semaphore = Arc::new(Semaphore::new(0));