From b7fbcbc089b4cee209a4ea1423fb9f39d60e90b3 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 5 Apr 2024 23:02:31 +0300 Subject: [PATCH] fixes --- app/core/models/_telegram/templates/player.py | 4 ++++ locale/en/LC_MESSAGES/sanic_telegram_bot.mo | Bin 2621 -> 2680 bytes locale/en/LC_MESSAGES/sanic_telegram_bot.po | 3 +++ 3 files changed, 7 insertions(+) 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 b1677ca786a5c6651ee1ac1da5fb4ec6e3bfbd53..195f63507b5e143d72421781849496f1b8fc8d24 100644 GIT binary patch delta 652 zcmXZZzb^w}7{KvYTP;da)l=0dNjHhqATddFBYq4LG1aw-rLELSBpsTt_%W8r(xrbv z7fTn3L4sHrEK>gf1C5C9^WMF=_dfT&_ul*5^SsT_cc}6f^js-gls-oPq9^DN9o%SJ zE~WfvqP)-JFrK4i}GE}WA8JKl1vImFpUFvFG}MS^sy0Jk+`my?49Iib?f6!!n(=1 z5mT2deSfZh7o9{9 delta 594 zcmY+?zb`{k7{>9(ZK>a_s$N$clxSiwut++I$slosL<~(B7_1f{(!^gNx#?mvNUYM4 zrWR9IF&OL;tHh%5eNXS=r00IlJ#F9jyzjj~xn{2Rkxkacm|_;0U(5yOQx6wL=t)Dk zjrM&NC-5A7ypFw(_n$G#{u}1-6UVTF7AKRC2C#_ZQcYzR_Jc}yLz`%U53q!1IEOcw z$0p9=E873Qkw8i%r2-ak5?3*UVZ48cK1E%k9i-kX1?1N)i!>XLxQA`DMDu;!Koy+f zeg~KF6fMAA>;qnL-$aYEmXg*n#21Y42>1J?V{D-nR;CRl@@s>|E}ozTZs7{H(JJWR zD5eJ`KAPrY6)z$MxyJ$j2Hke;C$}ir#j)6&(GBY`b-IJNVB~P8w`XTb?0pz!2GNq| c2bO+>X^o}duJNFJRQ28)TZtgqxJdnae`qN$7ytkO 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"