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:
@@ -87,6 +87,7 @@ pub async fn download_file(
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
pub async fn download_file_by_link(
|
||||
filename: String,
|
||||
link: String,
|
||||
|
||||
@@ -66,8 +66,14 @@ pub async fn start_axum_server(stop_signal: Arc<AtomicBool>) {
|
||||
|
||||
match serde_json::from_str::<Update>(&input) {
|
||||
Ok(mut update) => {
|
||||
if let UpdateKind::Error(value) = &mut update.kind {
|
||||
*value = serde_json::from_str(&input).unwrap_or_default();
|
||||
if let UpdateKind::Error(_) = &mut update.kind {
|
||||
log::warn!(
|
||||
"Cannot parse an update.\nValue: {}\n\
|
||||
This is a bug in teloxide-core, please open an issue here: \
|
||||
https://github.com/teloxide/teloxide/issues.",
|
||||
input
|
||||
);
|
||||
return StatusCode::OK;
|
||||
}
|
||||
|
||||
if let Err(err) = tx.send(Ok(update)) {
|
||||
|
||||
@@ -141,7 +141,7 @@ impl BotsManager {
|
||||
|
||||
if webhook_info.last_error_message.is_some() {
|
||||
log::error!(
|
||||
"Error getting webhook info: {:?}",
|
||||
"Webhook last error: {:?}",
|
||||
webhook_info.last_error_message
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user