Protected
_clientProtected
_sourceThe contact's vCard information, parsed from the vcard string if it exists. *
An object representing the contact's vCard information, or undefined if not available.
The contact's first name.
The contact's full name, consisting of the first name and last name.
The contact's last name.
The contact's phone number.
The contact's user ID.
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
An array of objects containing information about the countries associated with this contact's phone number. *
Returns
An array of objects containing country and code information.