Package org.drinkless.tdlib
Class TdApi.User
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.User
-
- Enclosing class:
- TdApi
public static class TdApi.User extends TdApi.Object
Represents a user.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringfirstNameFirst name of the user.booleanhaveAccessIf false, the user is inaccessible, and the only information known about the user is inside this class.longidUser identifier.booleanisContactThe user is a contact of the current user.booleanisFakeTrue, if many users reported this user as a fake account.booleanisMutualContactThe user is a contact of the current user and the current user is a contact of the user.booleanisScamTrue, if many users reported this user as a scam.booleanisSupportTrue, if the user is Telegram support account.booleanisVerifiedTrue, if the user is verified.StringlanguageCodeIETF language tag of the user's language; only available to bots.StringlastNameLast name of the user.StringphoneNumberPhone number of the user.TdApi.ProfilePhotoprofilePhotoProfile photo of the user; may be null.StringrestrictionReasonIf non-empty, it contains a human-readable description of the reason why access to this user must be restricted.TdApi.UserStatusstatusCurrent online status of the user.TdApi.UserTypetypeType of the user.StringusernameUsername of the user.
-
Constructor Summary
Constructors Constructor Description User()Represents a user.User(long id, String firstName, String lastName, String username, String phoneNumber, TdApi.UserStatus status, TdApi.ProfilePhoto profilePhoto, boolean isContact, boolean isMutualContact, boolean isVerified, boolean isSupport, String restrictionReason, boolean isScam, boolean isFake, boolean haveAccess, TdApi.UserType type, String languageCode)Represents a user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
id
public long id
User identifier.
-
firstName
public String firstName
First name of the user.
-
lastName
public String lastName
Last name of the user.
-
username
public String username
Username of the user.
-
phoneNumber
public String phoneNumber
Phone number of the user.
-
status
public TdApi.UserStatus status
Current online status of the user.
-
profilePhoto
public TdApi.ProfilePhoto profilePhoto
Profile photo of the user; may be null.
-
isContact
public boolean isContact
The user is a contact of the current user.
-
isMutualContact
public boolean isMutualContact
The user is a contact of the current user and the current user is a contact of the user.
-
isVerified
public boolean isVerified
True, if the user is verified.
-
isSupport
public boolean isSupport
True, if the user is Telegram support account.
-
restrictionReason
public String restrictionReason
If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.
-
isScam
public boolean isScam
True, if many users reported this user as a scam.
-
isFake
public boolean isFake
True, if many users reported this user as a fake account.
-
haveAccess
public boolean haveAccess
If false, the user is inaccessible, and the only information known about the user is inside this class. It can't be passed to any method except GetUser.
-
type
public TdApi.UserType type
Type of the user.
-
languageCode
public String languageCode
IETF language tag of the user's language; only available to bots.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
User
public User()
Represents a user.
-
User
public User(long id, String firstName, String lastName, String username, String phoneNumber, TdApi.UserStatus status, TdApi.ProfilePhoto profilePhoto, boolean isContact, boolean isMutualContact, boolean isVerified, boolean isSupport, String restrictionReason, boolean isScam, boolean isFake, boolean haveAccess, TdApi.UserType type, String languageCode)Represents a user.- Parameters:
id- User identifier.firstName- First name of the user.lastName- Last name of the user.username- Username of the user.phoneNumber- Phone number of the user.status- Current online status of the user.profilePhoto- Profile photo of the user; may be null.isContact- The user is a contact of the current user.isMutualContact- The user is a contact of the current user and the current user is a contact of the user.isVerified- True, if the user is verified.isSupport- True, if the user is Telegram support account.restrictionReason- If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.isScam- True, if many users reported this user as a scam.isFake- True, if many users reported this user as a fake account.haveAccess- If false, the user is inaccessible, and the only information known about the user is inside this class. It can't be passed to any method except GetUser.type- Type of the user.languageCode- IETF language tag of the user's language; only available to bots.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-