mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-08 09:30:45 +01:00
Add logs
This commit is contained in:
@@ -500,13 +500,17 @@ async fn download_archive(
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
bot
|
let send_result = bot
|
||||||
.send_document(
|
.send_document(
|
||||||
message.chat.id,
|
message.chat.id,
|
||||||
InputFile::url(task.result_link.unwrap().parse().unwrap())
|
InputFile::url(task.result_link.unwrap().parse().unwrap())
|
||||||
)
|
)
|
||||||
.send()
|
.send()
|
||||||
.await?;
|
.await;
|
||||||
|
|
||||||
|
if let Err(err) = send_result {
|
||||||
|
log::error!("{:?}", err);
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user