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