mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix
This commit is contained in:
@@ -13,7 +13,6 @@ use teloxide::{
|
|||||||
};
|
};
|
||||||
use tokio::time::sleep;
|
use tokio::time::sleep;
|
||||||
use tokio_util::compat::FuturesAsyncReadCompatExt;
|
use tokio_util::compat::FuturesAsyncReadCompatExt;
|
||||||
use url::Url;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
bots::{
|
bots::{
|
||||||
@@ -503,9 +502,7 @@ async fn download_archive(
|
|||||||
bot
|
bot
|
||||||
.send_document(
|
.send_document(
|
||||||
message.chat.id,
|
message.chat.id,
|
||||||
InputFile::url(
|
InputFile::url(task.result_link.unwrap().parse().unwrap())
|
||||||
Url::from_str(&task.result_link.unwrap()
|
|
||||||
).unwrap())
|
|
||||||
)
|
)
|
||||||
.send()
|
.send()
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user