added telegram error logging
This commit is contained in:
parent
81746dd5dc
commit
677226a77f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue