Private
#memberProtected
_clientProtected
_sourceReturns the user's first name.
Returns the user's full name.
Returns the user's ID.
Returns whether the user is a bot.
Returns whether the user is a premium user.
Returns the user's language code and country.
Returns the user's last name.
Returns the user's username.
Gets the user's chat member object.
The chat member object or null if the user is not a member of a chat.
Gets the user's profile photos.
Optional
params: Partial<IGetUserProfilePhotosParams>Additional parameters for the API call.
The API response.
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 the user's appeal, which is either their username or full name.