Protected
_clientProtected
_sourceReturns the shipping address associated with the order.
Returns the email associated with the order.
Returns the name associated with the order.
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 object that contains the phone number and country code associated with the order. If the
phone_number
property of thesource
property is not defined, returnsundefined
.