From ac9d89fb3d6804567d6ad0b94a0f0e2775272da9 Mon Sep 17 00:00:00 2001 From: StNicolay Date: Sun, 30 Oct 2022 16:37:24 +0300 Subject: [PATCH] made login and password easily copyable --- src/bot/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot/handlers.py b/src/bot/handlers.py index 528ec4f..2446ad5 100644 --- a/src/bot/handlers.py +++ b/src/bot/handlers.py @@ -13,7 +13,7 @@ Message = telebot.types.Message def _send_tmp_message( bot: telebot.TeleBot, chat_id: telebot.types.Message, text: str, timeout: int = 5 ) -> None: - bot_mes = bot.send_message(chat_id, text) + bot_mes = bot.send_message(chat_id, text, parse_mode="MarkdownV2") time.sleep(timeout) bot.delete_message(chat_id, bot_mes.id) @@ -273,7 +273,7 @@ def _get_account3( login, passwd = cryptography.other_accounts.decrypt_account_info( enc_login, enc_pass, text.encode("utf-8"), salt ) - _send_tmp_message(bot, mes.chat.id, f"Логин:\n{login}\nПароль:\n{passwd}", 30) + _send_tmp_message(bot, mes.chat.id, f"Логин:\n`{login}`\nПароль:\n`{passwd}`", 30) del text, mes, passwd, login gc.collect()