diff --git a/src/bot/helper_functions.py b/src/bot/helper_functions.py index 73205e9..a858a75 100644 --- a/src/bot/helper_functions.py +++ b/src/bot/helper_functions.py @@ -86,10 +86,3 @@ async def send_deleteable_message( parse_mode="MarkdownV2", reply_markup=markup, ) - - -def escape(text: str) -> str: - escaped_chars = "*_~|`[(" - for char in escaped_chars: - text = text.replace(char, rf"\\{char}") - return text diff --git a/src/bot/message_handlers.py b/src/bot/message_handlers.py index a2a926d..ab4de46 100644 --- a/src/bot/message_handlers.py +++ b/src/bot/message_handlers.py @@ -20,7 +20,6 @@ from . import markups from .helper_functions import ( base_handler, delete_message, - escape, get_state, register_state, send_deleteable_message, @@ -394,9 +393,9 @@ async def _get_account3( await send_deleteable_message( bot, mes.chat.id, - f"Название:\n{escape(account.name)}\n" + f"Название:\n`{account.name}`\n" f"Логин:\n`{account.login}`\nПароль:\n`{account.password}`\nНажмите " - "на логин или пароль, чтобы скопировать", + "на название, логин или пароль, чтобы скопировать", ) del text, mes