Добавлена ссылка на гитхаб

This commit is contained in:
Serafim Urukov 2021-10-31 17:43:15 +03:00
parent c6db5a5dd6
commit 05f29bb382
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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<a href='https://github.com/Faridik/Carolyn/commit/{commit_id}'>{commit_id:7}</a>"
class Spreadsheets:
pass