This commit is contained in:
2023-01-20 15:02:38 +01:00
parent da80067401
commit 7dc68b0996
3 changed files with 10 additions and 21 deletions

View File

@@ -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(());
}