mirror of
https://github.com/Steffo99/greed.git
synced 2025-02-25 17:45:10 +00:00
separated __success_payment_processing
This commit is contained in:
parent
da222deffb
commit
7c7c1ce0d9
1 changed files with 4 additions and 0 deletions
|
@ -859,6 +859,10 @@ class Worker(threading.Thread):
|
|||
if isinstance(precheckoutquery, CancelSignal):
|
||||
# Exit the function
|
||||
return
|
||||
|
||||
self.__success_payment_processing(precheckoutquery, fee)
|
||||
|
||||
def __success_payment_processing(self, precheckoutquery, fee):
|
||||
# Accept the checkout
|
||||
self.bot.answer_pre_checkout_query(precheckoutquery.id, ok=True)
|
||||
# Wait for the payment
|
||||
|
|
Loading…
Add table
Reference in a new issue