mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Fix
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use std::{str::FromStr, time::Duration};
|
||||
|
||||
use chrono::Utc;
|
||||
use futures::TryStreamExt;
|
||||
use regex::Regex;
|
||||
use strum_macros::EnumIter;
|
||||
@@ -515,12 +516,16 @@ async fn wait_archive(
|
||||
).await {
|
||||
Ok(_) => (),
|
||||
Err(err) => {
|
||||
let now = Utc::now().format("%H:%M:%S UTC").to_string();
|
||||
|
||||
let _ = bot
|
||||
.edit_message_text(
|
||||
message.chat.id,
|
||||
message.id,
|
||||
format!(
|
||||
"Файл не может быть загружен в чат! \nВы можете скачать его <a href=\"{}\">по ссылке</a> (работает 24 часа)",
|
||||
"Файл не может быть загружен в чат! \n \
|
||||
Вы можете скачать его <a href=\"{}\">по ссылке</a> (работает 3 часа)\n \
|
||||
Обновлено в {now}",
|
||||
task.result_link.unwrap()
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user