(message)
| 57 | # Handler for successful payments |
| 58 | @bot.message_handler(content_types=['successful_payment']) |
| 59 | def handle_successful_payment(message): |
| 60 | # Get the product that was purchased from the invoice payload |
| 61 | product = message.successful_payment.invoice_payload |
| 62 | bot.reply_to(message, |
| 63 | f"Payment for {product} successful!") |
| 64 | bot.polling() |
nothing calls this directly
no test coverage detected
searching dependent graphs…