Update deps and refactor

This commit is contained in:
2025-08-09 23:10:40 +02:00
parent ae292b180c
commit 34f0c9feb6
18 changed files with 387 additions and 358 deletions

View File

@@ -16,20 +16,20 @@ enum SupportCommand {
pub async fn support_command_handler(
message: Message,
bot: CacheMe<Throttle<Bot>>,
bot: &CacheMe<Throttle<Bot>>,
) -> BotHandlerInternal {
let username = match message.clone().from {
Some(user) => match user.is_bot {
true => match message.reply_to_message() {
Some(v) => match &v.from {
Some(v) => v.first_name.clone(),
None => "пользователь".to_string(),
Some(v) => &v.first_name,
None => "пользователь",
},
None => "пользователь".to_string(),
None => "пользователь",
},
false => user.first_name,
false => &user.first_name.clone(),
},
None => "пользователь".to_string(),
None => "пользователь",
};
let message_text = format!(