mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Add logs
This commit is contained in:
@@ -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(_) => (),
|
||||||
|
|||||||
Reference in New Issue
Block a user