Type of the callback context.
Return value type.
Creates a new handler instance.
Type of the callback context.
Return value type.
Async function executed when this handler matches an update.
Checks whether the incoming update contains a pre_checkout_query.
The update to test.
true if update has pre_checkout_query.
Handler for incoming pre-checkout queries (
pre_checkout_queryupdates).Allows validating shipping information and confirming the final order before payment processing.
Example