This commit is contained in:
2024-05-04 23:41:03 +02:00
parent a77ab84f5c
commit 8eca116f7a

View File

@@ -124,10 +124,13 @@ async fn _send_downloaded_file(
let document: InputFile = InputFile::read(data).file_name(filename); let document: InputFile = InputFile::read(data).file_name(filename);
bot.send_document(message.chat.id, document) match bot.send_document(message.chat.id, document)
.caption(caption) .caption(caption)
.send() .send()
.await?; .await {
Ok(_) => (),
Err(err) => return Err(Box::new(err)),
}
match send_donation_notification(bot, message.clone()).await { match send_donation_notification(bot, message.clone()).await {
Ok(_) => (), Ok(_) => (),