This commit is contained in:
2023-05-18 10:08:19 +02:00
parent c258eb0af0
commit 73e43cf709
5 changed files with 35 additions and 46 deletions

View File

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