From 677226a77fc57a3e34df444f8c16d0e7ae103356 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 11 Jul 2021 00:32:55 +0100 Subject: [PATCH] added telegram error logging --- src/selection/telegram.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/selection/telegram.rs b/src/selection/telegram.rs index 0f30d93..0c607c7 100644 --- a/src/selection/telegram.rs +++ b/src/selection/telegram.rs @@ -54,13 +54,16 @@ impl TelegramSelector { _ => false, }; let _ = sender.send(keep); - let _ = api_clone + if let Err(error) = api_clone .send(query.answer(if keep { "Kept!" } else { "Discarded!" })) - .await; + .await + { + println!("Error sending query answer: {}", error); + }; if let Some(message) = query.message { let _ = api_clone