/hello rather than hello to activate bot

This commit is contained in:
rustdesk 2024-06-27 18:01:14 +08:00
parent 9e851542ec
commit 5bfdf05ff2
2 changed files with 2 additions and 2 deletions

View File

@ -231,6 +231,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("texture_render_tip", "Use texture rendering to make the pictures smoother. You could try disabling this option if you encounter rendering issues."),
("floating_window_tip", "It helps to keep RustDesk background service"),
("enable-bot-tip", "If you enable this feature, you can receive the 2FA code from your bot. It can also function as a connection notification."),
("enable-bot-desc", "1, Open a chat with @BotFather.\n2, Send the command \"/newbot\". You will receive a token after completing this step.\n3, Start a chat with your newly created bot. Send a message like \"hello\" to activate it.\n"),
("enable-bot-desc", "1, Open a chat with @BotFather.\n2, Send the command \"/newbot\". You will receive a token after completing this step.\n3, Start a chat with your newly created bot. Send a message beginning with a forward slash ("/") like \"\/hello\" to activate it.\n"),
].iter().cloned().collect();
}

View File

@ -1400,7 +1400,7 @@ pub fn verify_bot(token: String) -> String {
match crate::auth_2fa::get_chatid_telegram(&token) {
Err(err) => err.to_string(),
Ok(None) => {
"To activate the bot, simply send a message like \"hello\" to its chat.".to_owned()
"To activate the bot, simply send a message beginning with a forward slash ("/") like \"hello\" to its chat.".to_owned()
}
_ => "".to_owned(),
}