public static class TdApi.SharedUser 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; for bots only.
|
java.lang.String |
lastName
Last name of the user; for bots only.
|
TdApi.Photo |
photo
Profile photo of the user; for bots only; may be null.
|
long |
userId
User identifier.
|
java.lang.String |
username
Username of the user; for bots only.
|
| Constructor and Description |
|---|
SharedUser()
Contains information about a user shared with a bot.
|
SharedUser(long userId,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String username,
TdApi.Photo photo)
Contains information about a user shared with a bot.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public java.lang.String firstName
public java.lang.String lastName
public java.lang.String username
public TdApi.Photo photo
public static final int CONSTRUCTOR
public SharedUser()
public SharedUser(long userId,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String username,
TdApi.Photo photo)
userId - User identifier.firstName - First name of the user; for bots only.lastName - Last name of the user; for bots only.username - Username of the user; for bots only.photo - Profile photo of the user; for bots only; may be null.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object