now answering callback queries
This commit is contained in:
		@@ -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)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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,
 | 
			
		||||
 
 | 
			
		||||
@@ -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(())
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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(())
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user