Fix downloading

This commit is contained in:
2023-01-19 00:33:43 +01:00
parent eb84fecdaa
commit 294693ef6f
2 changed files with 4 additions and 12 deletions

View File

@@ -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),