Class TdApi.SharedUser
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.SharedUser
- Enclosing class:
- TdApi
Contains information about a user shared with a bot.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.First name of the user; for bots only.Last name of the user; for bots only.Profile photo of the user; for bots only; may be null.long
User identifier.Username of the user; for bots only. -
Constructor Summary
ConstructorDescriptionContains information about a user shared with a bot.SharedUser
(long userId, String firstName, String lastName, String username, TdApi.Photo photo) Contains information about a user shared with a bot. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
userId
public long userIdUser 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SharedUser
public SharedUser()Contains information about a user shared with a bot. -
SharedUser
public SharedUser(long userId, String firstName, String lastName, String username, TdApi.Photo photo) Contains information about a user shared with a bot.- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-