now answering callback queries

This commit is contained in:
StNicolay committed 2023-07-29 16:12:41 +03:00
1 parent b415277769
commit 7380140b7e
4 files changed
+12 -4

No files matched your search

+1
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)
} }
+1
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,
+9 -4
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,
.await?; text,
account_markup(&name, true),
ParseMode::MarkdownV2,
)
.await?;
bot.answer_callback_query(q.id).await?;
Ok(()) Ok(())
} }
+1
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(())
} }