java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.UserFullInfo
- Enclosing class:
- TdApi
Contains full information about a user.
-
Field Summary
Modifier and TypeFieldDescriptionA short user bio; may be null for bots.For bots, information about the bot; may be null.boolean
True, if the user can be called.static final int
int
Number of group chats where both the other user and the current user are a member; 0 for the current user.boolean
True, if the user can't be called due to their privacy settings.boolean
True, if the user can't be linked in forwarded messages due to their privacy settings.boolean
True, if voice and video notes can't be sent or forwarded to the user.boolean
True, if the user is blocked by the current user.boolean
True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.User profile photo set by the current user for the contact; may be null.User profile photo; may be null.The list of available options for gifting Telegram Premium to the user.User profile photo visible if the main photo is hidden by privacy settings; may be null.boolean
True, if a video call can be created with the user. -
Constructor Summary
ConstructorDescriptionContains full information about a user.UserFullInfo
(TdApi.ChatPhoto personalPhoto, TdApi.ChatPhoto photo, TdApi.ChatPhoto publicPhoto, boolean isBlocked, boolean canBeCalled, boolean supportsVideoCalls, boolean hasPrivateCalls, boolean hasPrivateForwards, boolean hasRestrictedVoiceAndVideoNoteMessages, boolean needPhoneNumberPrivacyException, TdApi.FormattedText bio, TdApi.PremiumPaymentOption[] premiumGiftOptions, int groupInCommonCount, TdApi.BotInfo botInfo) Contains full information about a user.UserFullInfo
(DataInput input) Contains full information about a user. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
personalPhoto
User profile photo set by the current user for the contact; may be null. If null and user.profilePhoto is null, then the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profilePhoto and chat.photo. This photo isn't returned in the list of user photos. -
photo
User profile photo; may be null. If null and user.profilePhoto is null, then the photo is empty; otherwise, it is unknown. If non-null and personalPhoto is null, then it is the same photo as in user.profilePhoto and chat.photo. -
publicPhoto
User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profilePhoto is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personalPhoto are null, then it is the same photo as in user.profilePhoto and chat.photo. This photo isn't returned in the list of user photos. -
isBlocked
public boolean isBlockedTrue, if the user is blocked by the current user. -
canBeCalled
public boolean canBeCalledTrue, if the user can be called. -
supportsVideoCalls
public boolean supportsVideoCallsTrue, if a video call can be created with the user. -
hasPrivateCalls
public boolean hasPrivateCallsTrue, if the user can't be called due to their privacy settings. -
hasPrivateForwards
public boolean hasPrivateForwardsTrue, if the user can't be linked in forwarded messages due to their privacy settings. -
hasRestrictedVoiceAndVideoNoteMessages
public boolean hasRestrictedVoiceAndVideoNoteMessagesTrue, if voice and video notes can't be sent or forwarded to the user. -
needPhoneNumberPrivacyException
public boolean needPhoneNumberPrivacyExceptionTrue, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used. -
bio
A short user bio; may be null for bots. -
groupInCommonCount
public int groupInCommonCountNumber of group chats where both the other user and the current user are a member; 0 for the current user. -
botInfo
For bots, information about the bot; may be null. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
UserFullInfo
public UserFullInfo()Contains full information about a user. -
UserFullInfo
public UserFullInfo(TdApi.ChatPhoto personalPhoto, TdApi.ChatPhoto photo, TdApi.ChatPhoto publicPhoto, boolean isBlocked, boolean canBeCalled, boolean supportsVideoCalls, boolean hasPrivateCalls, boolean hasPrivateForwards, boolean hasRestrictedVoiceAndVideoNoteMessages, boolean needPhoneNumberPrivacyException, TdApi.FormattedText bio, TdApi.PremiumPaymentOption[] premiumGiftOptions, int groupInCommonCount, TdApi.BotInfo botInfo) Contains full information about a user.- Parameters:
personalPhoto
- ChatPhoto User profile photo set by the current user for the contact; may be null. If null and user.profilePhoto is null, then the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profilePhoto and chat.photo. This photo isn't returned in the list of user photos.photo
- ChatPhoto User profile photo; may be null. If null and user.profilePhoto is null, then the photo is empty; otherwise, it is unknown. If non-null and personalPhoto is null, then it is the same photo as in user.profilePhoto and chat.photo.publicPhoto
- ChatPhoto User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profilePhoto is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personalPhoto are null, then it is the same photo as in user.profilePhoto and chat.photo. This photo isn't returned in the list of user photos.isBlocked
- boolean True, if the user is blocked by the current user.canBeCalled
- boolean True, if the user can be called.supportsVideoCalls
- boolean True, if a video call can be created with the user.hasPrivateCalls
- boolean True, if the user can't be called due to their privacy settings.hasPrivateForwards
- boolean True, if the user can't be linked in forwarded messages due to their privacy settings.hasRestrictedVoiceAndVideoNoteMessages
- boolean True, if voice and video notes can't be sent or forwarded to the user.needPhoneNumberPrivacyException
- boolean True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.bio
- FormattedText A short user bio; may be null for bots.premiumGiftOptions
- PremiumPaymentOption[] The list of available options for gifting Telegram Premium to the user.groupInCommonCount
- int Number of group chats where both the other user and the current user are a member; 0 for the current user.botInfo
- BotInfo For bots, information about the bot; may be null.
-
UserFullInfo
Contains full information about a user.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-