1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-21 21:44:19 +00:00
This commit is contained in:
Steffo 2021-06-01 16:19:22 +02:00 committed by GitHub
parent bcdff61c3a
commit 48c3eb9c48
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -804,12 +804,12 @@ class Worker(threading.Thread):
if value > self.Price(self.cfg["Payments"]["CreditCard"]["max_amount"]): if value > self.Price(self.cfg["Payments"]["CreditCard"]["max_amount"]):
self.bot.send_message(self.chat.id, self.bot.send_message(self.chat.id,
self.loc.get("error_payment_amount_over_max", self.loc.get("error_payment_amount_over_max",
max_amount=self.Price(self.cfg["Credit Card"]["max_amount"]))) max_amount=self.Price(self.cfg["CreditCard"]["max_amount"])))
continue continue
elif value < self.Price(self.cfg["Payments"]["CreditCard"]["min_amount"]): elif value < self.Price(self.cfg["Payments"]["CreditCard"]["min_amount"]):
self.bot.send_message(self.chat.id, self.bot.send_message(self.chat.id,
self.loc.get("error_payment_amount_under_min", self.loc.get("error_payment_amount_under_min",
min_amount=self.Price(self.cfg["Credit Card"]["min_amount"]))) min_amount=self.Price(self.cfg["CreditCard"]["min_amount"])))
continue continue
break break
# If the user cancelled the action... # If the user cancelled the action...