Refactor send_donation_notification error handling

This commit is contained in:
2024-03-20 14:54:44 +01:00
parent c68058fee4
commit 315d88e406

View File

@@ -91,7 +91,10 @@ async fn send_cached_message(
bot.delete_message(message.chat.id, message.id).await?; bot.delete_message(message.chat.id, message.id).await?;
} }
send_donation_notification(bot.clone(), message).await?; match send_donation_notification(bot.clone(), message).await {
Ok(_) => (),
Err(err) => log::error!("{:?}", err),
}
return Ok(()); return Ok(());
} }
@@ -126,7 +129,10 @@ async fn _send_downloaded_file(
.send() .send()
.await?; .await?;
send_donation_notification(bot, message.clone()).await?; match send_donation_notification(bot, message.clone()).await {
Ok(_) => (),
Err(err) => log::error!("{:?}", err),
};
Ok(()) Ok(())
} }