Updated delete callback handler to alter a message if /delete command was used

This commit is contained in:
2023-08-11 15:15:35 +03:00
parent 6691ab12de
commit 06492bf31e
5 changed files with 34 additions and 20 deletions

View File

@ -17,7 +17,7 @@ pub async fn delete(bot: Throttle<Bot>, msg: Message, db: DatabaseConnection) ->
return Ok(());
}
let markup = spawn_blocking(|| menu_markup_sync("delete", names)).await?;
let markup = spawn_blocking(|| menu_markup_sync("delete1", names)).await?;
bot.send_message(msg.chat.id, "Choose the account to delete")
.reply_markup(markup)
.await?;