Protected
_clientProtected
_sourceReturns a UserContext
object that represents the user who initiated the pre-checkout query.
Returns the total amount of the pre-checkout query.
Returns the currency code associated with the pre-checkout query.
Returns the ID associated with the pre-checkout query.
Returns the invoice payload associated with the pre-checkout query.
Returns the ID of the shipping option selected by the user, if any.
Converts the source object to a context object of a given type.
client.updates.on("message", message => {
const user = message.user.toContext<CustomUserContext>();
// Now user works correctly with your context
})
Generic type parameter for the context object.
The context object.
Generated using TypeDoc
Returns an
OrderInfoContext
object that represents the order information associated with the pre-checkout query. If theorder_info
property of thesource
property is not defined, returnsundefined
.