1
Fork 0
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:
skipper70 2021-05-01 05:03:38 +05:00 committed by Stefano Pigozzi
parent ee57dd9e2a
commit 17cb4fe118

View file

@ -1222,7 +1222,7 @@ class Worker(threading.Thread):
# 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)
# 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
if isinstance(reply, CancelSignal):
return