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()