|
|
@ -13,9 +13,8 @@ from tipbot.helpers.utils import generate_qr
|
|
|
|
def deposit(update, context):
|
|
|
|
def deposit(update, context):
|
|
|
|
u = db.User.get(telegram_id=update.message.from_user['id'])
|
|
|
|
u = db.User.get(telegram_id=update.message.from_user['id'])
|
|
|
|
address = wownero.Wallet().addresses(account=u.account_index)[0]
|
|
|
|
address = wownero.Wallet().addresses(account=u.account_index)[0]
|
|
|
|
update.message.reply_text(f'Deposit address for {u.telegram_user}: {address}')
|
|
|
|
|
|
|
|
update.message.reply_photo(
|
|
|
|
update.message.reply_photo(
|
|
|
|
photo=generate_qr(address),
|
|
|
|
photo=generate_qr(address),
|
|
|
|
caption=f'{u.telegram_user} deposit address: {address}',
|
|
|
|
caption=f'`{u.telegram_user}`\'s deposit address: {address}',
|
|
|
|
quote=False
|
|
|
|
quote=False
|
|
|
|
)
|
|
|
|
)
|
|
|
|