From a18947eed2c01ec5c26f6e1f431f5035e3f945ec Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 27 Jun 2024 18:23:51 +0800 Subject: [PATCH] fix typo --- src/lang/en.rs | 2 +- src/ui_interface.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lang/en.rs b/src/lang/en.rs index a76d4c7bc..0f74ba324 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -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 beginning with a forward slash ("/") 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(); } diff --git a/src/ui_interface.rs b/src/ui_interface.rs index 0d8723dcd..c05f720a7 100644 --- a/src/ui_interface.rs +++ b/src/ui_interface.rs @@ -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 beginning with a forward slash ("/") 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(), }