mirror of
https://git.wownero.com/lza_menace/tg-bot.git
synced 2024-08-15 00:23:12 +00:00
use as_wownero func to fix incoming amount
This commit is contained in:
parent
3444c6b0c4
commit
f4041f1325
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ def send(update, context):
|
|||
|
||||
# validate amount
|
||||
try:
|
||||
amount = Decimal(context.args[1])
|
||||
amount = wownero.as_wownero(context.args[1])
|
||||
except:
|
||||
update.message.reply_text(f'Bad Wownero amount specified; "{context.args[1]}" is not a valid number.')
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue