now answering callback queries

This commit is contained in:
StNicolay 2023-07-29 16:12:41 +03:00
parent b415277769
commit 7380140b7e
Signed by: StNicolay
GPG Key ID: 9693D04DCD962B0D
4 changed files with 12 additions and 4 deletions

View File

@ -64,6 +64,7 @@ pub async fn decrypt(
msg.alter_message(&bot, "Send master password", None, None) msg.alter_message(&bot, "Send master password", None, None)
.await?; .await?;
bot.answer_callback_query(q.id).await?;
change_state!(dialogue, msg, (name), State::GetMasterPass, get_master_pass) change_state!(dialogue, msg, (name), State::GetMasterPass, get_master_pass)
} }

View File

@ -53,6 +53,7 @@ pub async fn delete(
msg.0, msg.0,
"Send master password. Once you send correct master password the account is unrecoverable" "Send master password. Once you send correct master password the account is unrecoverable"
).await?; ).await?;
bot.answer_callback_query(q.id).await?;
change_state!( change_state!(
dialogue, dialogue,

View File

@ -25,10 +25,15 @@ pub async fn get(
}; };
let text = format!("Name:\n`{name}`\nLogin:\n\\*\\*\\*\nPassword:\n\\*\\*\\*"); let text = format!("Name:\n`{name}`\nLogin:\n\\*\\*\\*\nPassword:\n\\*\\*\\*");
bot.send_message(ids.0, text)
.reply_markup(account_markup(&name, true)) ids.alter_message(
.parse_mode(ParseMode::MarkdownV2) &bot,
text,
account_markup(&name, true),
ParseMode::MarkdownV2,
)
.await?; .await?;
bot.answer_callback_query(q.id).await?;
Ok(()) Ok(())
} }

View File

@ -17,5 +17,6 @@ pub async fn get_menu(
ids.alter_message(&bot, "Choose your account", markup, None) ids.alter_message(&bot, "Choose your account", markup, None)
.await?; .await?;
bot.answer_callback_query(q.id).await?;
Ok(()) Ok(())
} }