mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-21 21:44:19 +00:00
fix 3+ numbers for create_transaction
This commit is contained in:
parent
ee57dd9e2a
commit
17cb4fe118
1 changed files with 1 additions and 1 deletions
|
@ -1222,7 +1222,7 @@ class Worker(threading.Thread):
|
||||||
# Request from the user the amount of money to be credited manually
|
# Request from the user the amount of money to be credited manually
|
||||||
self.bot.send_message(self.chat.id, self.loc.get("ask_credit"), reply_markup=cancel)
|
self.bot.send_message(self.chat.id, self.loc.get("ask_credit"), reply_markup=cancel)
|
||||||
# Wait for an answer
|
# Wait for an answer
|
||||||
reply = self.__wait_for_regex(r"(-? ?[0-9]{1,3}(?:[.,][0-9]{1,2})?)", cancellable=True)
|
reply = self.__wait_for_regex(r"(-? ?[0-9]+(?:[.,][0-9]{1,2})?)", cancellable=True)
|
||||||
# Allow the cancellation of the operation
|
# Allow the cancellation of the operation
|
||||||
if isinstance(reply, CancelSignal):
|
if isinstance(reply, CancelSignal):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue