Given the upcoming Telegram update that will introduce Telegram Stars, here's a pull requests that adds support for pre-checkout queries by adding PreCheckoutQuery:
@app.on_pre_checkout_query()
async def pre_checkout(client, pre_checkout_query):
# do something with the query
await pre_checkout_query.answer(success=True)
and support for service messages for successful payments by adding SuccessfulPayment and the corresponding filter:
Given the upcoming Telegram update that will introduce Telegram Stars, here's a pull requests that adds support for pre-checkout queries by adding
PreCheckoutQuery
:and support for service messages for successful payments by adding
SuccessfulPayment
and the corresponding filter: