public static class TdApi.User extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
firstName
First name of the user.
|
boolean |
haveAccess
If false, the user is inaccessible, and the only information known about the user is inside this class.
|
long |
id
User identifier.
|
boolean |
isContact
The user is a contact of the current user.
|
boolean |
isFake
True, if many users reported this user as a fake account.
|
boolean |
isMutualContact
The user is a contact of the current user and the current user is a contact of the user.
|
boolean |
isScam
True, if many users reported this user as a scam.
|
boolean |
isSupport
True, if the user is Telegram support account.
|
boolean |
isVerified
True, if the user is verified.
|
java.lang.String |
languageCode
IETF language tag of the user's language; only available to bots.
|
java.lang.String |
lastName
Last name of the user.
|
java.lang.String |
phoneNumber
Phone number of the user.
|
TdApi.ProfilePhoto |
profilePhoto
Profile photo of the user; may be null.
|
java.lang.String |
restrictionReason
If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.
|
TdApi.UserStatus |
status
Current online status of the user.
|
TdApi.UserType |
type
Type of the user.
|
java.lang.String |
username
Username of the user.
|
Constructor and Description |
---|
User()
Represents a user.
|
User(long id,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String username,
java.lang.String phoneNumber,
TdApi.UserStatus status,
TdApi.ProfilePhoto profilePhoto,
boolean isContact,
boolean isMutualContact,
boolean isVerified,
boolean isSupport,
java.lang.String restrictionReason,
boolean isScam,
boolean isFake,
boolean haveAccess,
TdApi.UserType type,
java.lang.String languageCode)
Represents a user.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long id
public java.lang.String firstName
public java.lang.String lastName
public java.lang.String username
public java.lang.String phoneNumber
public TdApi.UserStatus status
@Nullable public TdApi.ProfilePhoto profilePhoto
public boolean isContact
public boolean isMutualContact
public boolean isVerified
public boolean isSupport
public java.lang.String restrictionReason
public boolean isScam
public boolean isFake
public boolean haveAccess
public TdApi.UserType type
public java.lang.String languageCode
public static final int CONSTRUCTOR
public User()
public User(long id, java.lang.String firstName, java.lang.String lastName, java.lang.String username, java.lang.String phoneNumber, TdApi.UserStatus status, TdApi.ProfilePhoto profilePhoto, boolean isContact, boolean isMutualContact, boolean isVerified, boolean isSupport, java.lang.String restrictionReason, boolean isScam, boolean isFake, boolean haveAccess, TdApi.UserType type, java.lang.String languageCode)
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.public int getConstructor()
getConstructor
in class TdApi.Object