/hello rather than hello to activate bot
This commit is contained in:
		
							parent
							
								
									9e851542ec
								
							
						
					
					
						commit
						5bfdf05ff2
					
				| @ -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."), |         ("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"), |         ("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-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(); |     ].iter().cloned().collect(); | ||||||
| } | } | ||||||
|  | |||||||
| @ -1400,7 +1400,7 @@ pub fn verify_bot(token: String) -> String { | |||||||
|     match crate::auth_2fa::get_chatid_telegram(&token) { |     match crate::auth_2fa::get_chatid_telegram(&token) { | ||||||
|         Err(err) => err.to_string(), |         Err(err) => err.to_string(), | ||||||
|         Ok(None) => { |         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(), |         _ => "".to_owned(), | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user