1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-21 13:34:18 +00:00

🐛 Fix error if an expired invoice was clicked

This commit is contained in:
Steffo 2020-10-07 02:52:18 +02:00
parent 859df64c61
commit 69dfbc15c0

View file

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