mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fixes
This commit is contained in:
@@ -3,7 +3,6 @@ use teloxide::prelude::*;
|
||||
use std::error::Error;
|
||||
|
||||
use self::{strings::format_registered_message, utils::get_token};
|
||||
use crate::config;
|
||||
|
||||
pub mod register;
|
||||
pub mod strings;
|
||||
@@ -31,17 +30,6 @@ pub async fn message_handler(
|
||||
.await;
|
||||
}
|
||||
|
||||
if let register::RegisterStatus::Success { .. } = result {
|
||||
#[allow(unused_must_use)]
|
||||
{
|
||||
bot.send_message(
|
||||
config::CONFIG.admin_id.clone(),
|
||||
strings::BOT_REGISTERED_TO_ADMIN,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
}
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user