MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / handle_successful_payment

Function handle_successful_payment

examples/stars_payment.py:59–63  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

57# Handler for successful payments
58@bot.message_handler(content_types=['successful_payment'])
59def 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!")
64bot.polling()

Callers

nothing calls this directly

Calls 1

reply_toMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…