From 0fac457944febe895573b31982828c9f938d480b Mon Sep 17 00:00:00 2001 From: StNicolay Date: Sat, 29 Jul 2023 15:59:11 +0300 Subject: [PATCH] Added a mention of /set_master_pass when it is not set --- src/master_password_check.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/master_password_check.rs b/src/master_password_check.rs index a7c47c9..eeba778 100644 --- a/src/master_password_check.rs +++ b/src/master_password_check.rs @@ -31,9 +31,12 @@ async fn notify_about_no_master_pass( if let Some(error) = result { return Err(error.into()); } - bot.send_message(msg.chat.id, "No master password set") - .reply_markup(deletion_markup()) - .await?; + bot.send_message( + msg.chat.id, + "No master password set. Use /set_master_pass to set it", + ) + .reply_markup(deletion_markup()) + .await?; Ok(()) }