diff --git a/app/core/models/_telegram/templates/player.py b/app/core/models/_telegram/templates/player.py index 68513b4..d1fc9a1 100644 --- a/app/core/models/_telegram/templates/player.py +++ b/app/core/models/_telegram/templates/player.py @@ -79,6 +79,10 @@ class PlayerTemplates: 'text': self.user.translated('viewTrackAsClient_button'), 'url': f"https://t.me/{CLIENT_TELEGRAM_BOT_USERNAME}?start=C{content.cid.serialize_v2()}" }]) + inline_keyboard_array.append([{ + 'text': self.user.translated('openContractPage_button'), + 'url': f"https://tonscan.org/address/{content_meta['item_address']}" + }]) else: local_content = None diff --git a/locale/en/LC_MESSAGES/sanic_telegram_bot.mo b/locale/en/LC_MESSAGES/sanic_telegram_bot.mo index b1677ca..195f635 100644 Binary files a/locale/en/LC_MESSAGES/sanic_telegram_bot.mo and b/locale/en/LC_MESSAGES/sanic_telegram_bot.mo differ diff --git a/locale/en/LC_MESSAGES/sanic_telegram_bot.po b/locale/en/LC_MESSAGES/sanic_telegram_bot.po index 79d4796..1501c82 100644 --- a/locale/en/LC_MESSAGES/sanic_telegram_bot.po +++ b/locale/en/LC_MESSAGES/sanic_telegram_bot.po @@ -154,3 +154,6 @@ msgstr "View track" #: app/client_bot/routers/content.py:138 msgid "cancelPurchase_button" msgstr "Cancel purchase" + +msgid "openContractPage_button" +msgstr "Open smartcontract"