added telegram error logging

This commit is contained in:
Emile 2021-07-11 00:32:55 +01:00
parent 81746dd5dc
commit 677226a77f
1 changed files with 5 additions and 2 deletions

View File

@ -54,13 +54,16 @@ impl TelegramSelector {
_ => false, _ => false,
}; };
let _ = sender.send(keep); let _ = sender.send(keep);
let _ = api_clone if let Err(error) = api_clone
.send(query.answer(if keep { .send(query.answer(if keep {
"Kept!" "Kept!"
} else { } else {
"Discarded!" "Discarded!"
})) }))
.await; .await
{
println!("Error sending query answer: {}", error);
};
if let Some(message) = query.message { if let Some(message) = query.message {
let _ = api_clone let _ = api_clone