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:
parent
859df64c61
commit
69dfbc15c0
1 changed files with 1 additions and 1 deletions
2
core.py
2
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,
|
||||
|
|
Loading…
Reference in a new issue