diff --git a/TelegramBot/bot.py b/TelegramBot/bot.py index 2762ea9..e8f1370 100644 --- a/TelegramBot/bot.py +++ b/TelegramBot/bot.py @@ -397,7 +397,7 @@ def variant(update: Update, context: CallbackContext): def about(update: Update, context: CallbackContext): """Получить инфу о развертывании бота.""" - deploy_info = os.environ.get("CAROLYN_DEPLOY_INFO") + deploy_info = os.environ.get("CAROLYN_DEPLOY_INFO", "") update.message.reply_html(MESSAGES.Deploy.about(deploy_info)) diff --git a/TelegramBot/messages/messages.py b/TelegramBot/messages/messages.py index a048a43..0d369a9 100644 --- a/TelegramBot/messages/messages.py +++ b/TelegramBot/messages/messages.py @@ -113,8 +113,8 @@ class Messages: class Deploy: @staticmethod - def about(git_info): - return f"ℹ️ Информация о сборке:\n{git_info}" + def about(commit_id: str): + return f"ℹ️ Информация о сборке:\n{commit_id:7}" class Spreadsheets: pass