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 purchased_paid_media event.
The update to test.
true if update has purchased_paid_media.
Handler for purchased paid media events (
purchased_paid_mediaupdates).Triggered when a user buys paid media using Telegram Stars.
Example