This commit is contained in:
user 2024-04-05 23:02:31 +03:00
parent d9e2a39899
commit b7fbcbc089
3 changed files with 7 additions and 0 deletions

View File

@ -79,6 +79,10 @@ class PlayerTemplates:
'text': self.user.translated('viewTrackAsClient_button'), 'text': self.user.translated('viewTrackAsClient_button'),
'url': f"https://t.me/{CLIENT_TELEGRAM_BOT_USERNAME}?start=C{content.cid.serialize_v2()}" '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: else:
local_content = None local_content = None

View File

@ -154,3 +154,6 @@ msgstr "View track"
#: app/client_bot/routers/content.py:138 #: app/client_bot/routers/content.py:138
msgid "cancelPurchase_button" msgid "cancelPurchase_button"
msgstr "Cancel purchase" msgstr "Cancel purchase"
msgid "openContractPage_button"
msgstr "Open smartcontract"