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)
.await?;
bot.answer_callback_query(q.id).await?;
change_state!(dialogue, msg, (name), State::GetMasterPass, get_master_pass)
}

View File

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

View File

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

View File

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