From 121eb1b11e51fa9d9448f03b5df22e60eb7d1228 Mon Sep 17 00:00:00 2001 From: FerraSoft Date: Wed, 15 Oct 2025 13:47:41 +0300 Subject: [PATCH] feat: replace hardcoded text with variable in bot.py line 183 --- bot.py | 2 +- messages.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index cff3dd3..9b73e35 100644 --- a/bot.py +++ b/bot.py @@ -180,7 +180,7 @@ ID: {user_info['ID']} Роль: {user_info['Роль']} """ else: - info_text = "Информация не найдена." + info_text = USER_MESSAGES['info_not_found'] await update.message.reply_text(info_text, parse_mode='HTML') diff --git a/messages.py b/messages.py index 77c7f75..9a04b63 100644 --- a/messages.py +++ b/messages.py @@ -250,6 +250,7 @@ USER_MESSAGES = { 'welcome_new_user': '''🎉 Добро пожаловать в чат, {name}! Мы рады видеть вас здесь! Используйте /help чтобы узнать о возможностях бота.''', + 'info_not_found': 'Информация не найдена.', } # Сообщения инлайнового поиска