mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2026-03-03 07:00:53 +01:00
Add logs
This commit is contained in:
@@ -18,7 +18,10 @@ pub enum RegisterStatus {
|
|||||||
async fn get_bot_username(token: &str) -> Option<String> {
|
async fn get_bot_username(token: &str) -> Option<String> {
|
||||||
match Bot::new(token).get_me().send().await {
|
match Bot::new(token).get_me().send().await {
|
||||||
Ok(v) => v.username.clone(),
|
Ok(v) => v.username.clone(),
|
||||||
Err(_) => None
|
Err(err) => {
|
||||||
|
log::error!("Bot reg (getting username) error: {:?}", err);
|
||||||
|
None
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user