Vadim's preferences
This commit is contained in:
parent
cfd2a24e25
commit
8128a059df
@ -119,7 +119,7 @@ def get_account(
|
|||||||
login, passwd = cryptography.other_accounts.decrypt_account_info(
|
login, passwd = cryptography.other_accounts.decrypt_account_info(
|
||||||
enc_login, enc_pass, data[2].encode("utf-8"), salt
|
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
|
del data, mes, passwd, login
|
||||||
gc.collect()
|
gc.collect()
|
||||||
@ -136,6 +136,7 @@ def delete_all(
|
|||||||
def reset_master_pass(
|
def reset_master_pass(
|
||||||
bot: telebot.TeleBot, engine: Engine, mes: telebot.types.Message
|
bot: telebot.TeleBot, engine: Engine, mes: telebot.types.Message
|
||||||
) -> None:
|
) -> None:
|
||||||
|
bot.delete_message(mes.chat.id, mes.id)
|
||||||
data = shlex.split(mes.text)
|
data = shlex.split(mes.text)
|
||||||
if len(data) != 2:
|
if len(data) != 2:
|
||||||
return _send_tmp_message(bot, mes.chat.id, "Неправильное количество аргументов")
|
return _send_tmp_message(bot, mes.chat.id, "Неправильное количество аргументов")
|
||||||
|
Reference in New Issue
Block a user