From 8128a059dfbb2550318750addc553e67e5c51fea Mon Sep 17 00:00:00 2001 From: StNicolay <103897650+StNicolay@users.noreply.github.com> Date: Fri, 14 Oct 2022 21:26:20 +0300 Subject: [PATCH] Vadim's preferences --- src/bot/handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bot/handlers.py b/src/bot/handlers.py index ebe8c23..344fdcd 100644 --- a/src/bot/handlers.py +++ b/src/bot/handlers.py @@ -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, "Неправильное количество аргументов")