mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 12:35:39 +01:00
Fix MessageIdInvalid error
This commit is contained in:
@@ -90,6 +90,12 @@ pub async fn download_file(chat_id: i64, message_id: i32) -> Result<Option<File>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let teloxide::RequestError::Api(ref err) = err {
|
||||||
|
if let teloxide::ApiError::MessageIdInvalid = err {
|
||||||
|
return Ok(None);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
log::error!("Error: {}", err);
|
log::error!("Error: {}", err);
|
||||||
return Err(Box::new(err));
|
return Err(Box::new(err));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user