1
Fork 0
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:
valentino-sm 2021-05-07 11:14:33 +05:00
parent da222deffb
commit 7c7c1ce0d9
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 67109941CB0F2DAB

View file

@ -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