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
|
# validate amount
|
||||||
try:
|
try:
|
||||||
amount = Decimal(context.args[1])
|
amount = wownero.as_wownero(context.args[1])
|
||||||
except:
|
except:
|
||||||
update.message.reply_text(f'Bad Wownero amount specified; "{context.args[1]}" is not a valid number.')
|
update.message.reply_text(f'Bad Wownero amount specified; "{context.args[1]}" is not a valid number.')
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue