This commit is contained in:
2023-06-14 10:20:34 +02:00
parent 5175cd5446
commit a06100472d

View File

@@ -15,7 +15,14 @@ enum SupportCommand {
pub async fn support_command_handler( pub async fn support_command_handler(
message: Message, message: Message,
bot: CacheMe<Throttle<Bot>>) -> BotHandlerInternal { bot: CacheMe<Throttle<Bot>>) -> BotHandlerInternal {
let username = &message.from().unwrap().first_name;
let is_bot = message.from().unwrap().is_bot;
let username = if is_bot {
&message.reply_to_message().unwrap().from().unwrap().first_name
} else {
&message.from().unwrap().first_name
};
let message_text = format!(" let message_text = format!("
Привет, {username}! Привет, {username}!