From 17cb4fe118c7eea034a66f7a5b88d94980c90d0d Mon Sep 17 00:00:00 2001 From: skipper70 Date: Sat, 1 May 2021 05:03:38 +0500 Subject: [PATCH] fix 3+ numbers for create_transaction --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index 27ac30d..7f2f3d4 100644 --- a/worker.py +++ b/worker.py @@ -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