fixed delete command

This commit is contained in:
2024-03-07 17:30:49 +03:00
parent bc4b114ad7
commit aded63f9d5
2 changed files with 9 additions and 9 deletions

View File

@ -4,7 +4,7 @@ use crate::prelude::*;
pub async fn delete(bot: Throttle<Bot>, msg: Message, db: Pool) -> crate::Result<()> {
let user_id = msg.from().ok_or(NoUserInfo)?.id.0;
let markup = menu_markup("get", user_id, &db).await?;
let markup = menu_markup("delete1", user_id, &db).await?;
if markup.inline_keyboard.is_empty() {
bot.send_message(msg.chat.id, "You don't have any accounts")