This commit is contained in:
2023-06-07 21:43:13 +02:00
parent 8d1da2e144
commit 64400bb97c

View File

@@ -488,6 +488,18 @@ async fn download_archive(
i = i - 1; i = i - 1;
} }
if task.status != TaskStatus::Complete {
bot
.edit_message_text(message.chat.id, message.id, "Ошибка! Попробуйте позже :(")
.reply_markup(InlineKeyboardMarkup {
inline_keyboard: vec![],
})
.send()
.await?;
return Ok(());
}
bot bot
.send_document( .send_document(
message.chat.id, message.chat.id,