Vadim's preferences

This commit is contained in:
StNicolay 2022-10-14 21:26:20 +03:00
parent cfd2a24e25
commit 8128a059df

View File

@ -119,7 +119,7 @@ def get_account(
login, passwd = cryptography.other_accounts.decrypt_account_info(
enc_login, enc_pass, data[2].encode("utf-8"), salt
)
bot.send_message(mes.chat.id, f"Логин:\n{login}\nПароль:\n{passwd}")
_send_tmp_message(bot, mes.chat.id, f"Логин:\n{login}\nПароль:\n{passwd}", 30)
del data, mes, passwd, login
gc.collect()
@ -136,6 +136,7 @@ def delete_all(
def reset_master_pass(
bot: telebot.TeleBot, engine: Engine, mes: telebot.types.Message
) -> None:
bot.delete_message(mes.chat.id, mes.id)
data = shlex.split(mes.text)
if len(data) != 2:
return _send_tmp_message(bot, mes.chat.id, "Неправильное количество аргументов")