fix messages, save tonPerStar rate
This commit is contained in:
1 parent
bb2180f44b
commit
ddbd004633
7 files changed
+191
-86
No files matched your search
@@ -14,19 +14,20 @@ main_router = Router()
|
||||
|
||||
async def send_home_menu(chat_wrap, user, wallet_connection, **kwargs):
|
||||
return await tg_process_template(
|
||||
chat_wrap, user.translated('home_menu').format(
|
||||
chat_wrap, user.translated('clientHome_menu').format(
|
||||
wallet_address=Address(wallet_connection.wallet_address).to_string(1, 1, 1) if wallet_connection else user.translated('p_walletNotConnected'),
|
||||
name=user.front_format(plain_text=True),
|
||||
), keyboard=get_inline_keyboard([
|
||||
[{
|
||||
'text': user.translated('ownedContent_button'),
|
||||
'callback_data': 'ownedContent'
|
||||
}],
|
||||
[{
|
||||
'text': user.translated('disconnectWallet_button'),
|
||||
'callback_data': 'disconnectWallet'
|
||||
}] if wallet_connection else []
|
||||
]), **kwargs
|
||||
), # keyboard=get_inline_keyboard([
|
||||
# [{
|
||||
# 'text': user.translated('ownedContent_button'),
|
||||
# 'callback_data': 'ownedContent'
|
||||
# }],
|
||||
# [{
|
||||
# 'text': user.translated('disconnectWallet_button'),
|
||||
# 'callback_data': 'disconnectWallet'
|
||||
# }] if wallet_connection else []
|
||||
# ]),
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user