From 69dfbc15c0ffc6cdc0b8f5f151034a20bcfc9a14 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 7 Oct 2020 02:52:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20error=20if=20an=20expired?= =?UTF-8?q?=20invoice=20was=20clicked?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index c45d259..981b9cc 100644 --- a/core.py +++ b/core.py @@ -209,7 +209,7 @@ def main(): if receiving_worker is None or \ update.pre_checkout_query.invoice_payload != receiving_worker.invoice_payload: # Notify the user that the invoice has expired - log.debug(f"Received a pre-checkout query for an expired invoice in: {update.message.chat.id}") + log.debug(f"Received a pre-checkout query for an expired invoice in: {update.pre_checkout_query.from_user.id}") try: bot.answer_pre_checkout_query(update.pre_checkout_query.id, ok=False,