mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix downloading
This commit is contained in:
@@ -116,14 +116,6 @@ async fn send_with_download_from_channel(
|
||||
bot: AutoSend<Bot>,
|
||||
download_data: DownloadData,
|
||||
) -> BotHandlerInternal {
|
||||
match download_file(&download_data).await {
|
||||
Ok(v) => match _send_downloaded_file(&message, &bot, v).await {
|
||||
Ok(_) => return Ok(()),
|
||||
Err(err) => return Err(err),
|
||||
},
|
||||
Err(err) => log::warn!("{:?}", err),
|
||||
};
|
||||
|
||||
match download_file(&download_data).await {
|
||||
Ok(v) => match _send_downloaded_file(&message, &bot, v).await {
|
||||
Ok(v_2) => Ok(v_2),
|
||||
|
||||
Reference in New Issue
Block a user