public static class TdApi.UserFullInfo extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
TdApi.FormattedText |
bio
A short user bio; may be null for bots.
|
TdApi.Birthdate |
birthdate
Birthdate of the user; may be null if unknown.
|
TdApi.BlockList |
blockList
Block list to which the user is added; may be null if none.
|
TdApi.BotInfo |
botInfo
For bots, information about the bot; may be null if the user isn't a bot.
|
TdApi.BusinessInfo |
businessInfo
Information about business settings for Telegram Business accounts; may be null if none.
|
boolean |
canBeCalled
True, if the user can be called.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
giftCount
Number of gifts saved to profile by the user.
|
int |
groupInCommonCount
Number of group chats where both the other user and the current user are a member; 0 for the current user.
|
boolean |
hasPostedToProfileStories
True, if the user has posted to profile stories.
|
boolean |
hasPrivateCalls
True, if the user can't be called due to their privacy settings.
|
boolean |
hasPrivateForwards
True, if the user can't be linked in forwarded messages due to their privacy settings.
|
boolean |
hasRestrictedVoiceAndVideoNoteMessages
True, if voice and video notes can't be sent or forwarded to the user.
|
boolean |
hasSponsoredMessagesEnabled
True, if the user always enabled sponsored messages; known only for the current user.
|
boolean |
needPhoneNumberPrivacyException
True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.
|
long |
personalChatId
Identifier of the personal chat of the user; 0 if none.
|
TdApi.ChatPhoto |
personalPhoto
User profile photo set by the current user for the contact; may be null.
|
TdApi.ChatPhoto |
photo
User profile photo; may be null.
|
TdApi.ChatPhoto |
publicPhoto
User profile photo visible if the main photo is hidden by privacy settings; may be null.
|
boolean |
setChatBackground
True, if the user set chat background for both chat users and it wasn't reverted yet.
|
boolean |
supportsVideoCalls
True, if a video call can be created with the user.
|
| Constructor and Description |
|---|
UserFullInfo()
Contains full information about a user.
|
UserFullInfo(TdApi.ChatPhoto personalPhoto,
TdApi.ChatPhoto photo,
TdApi.ChatPhoto publicPhoto,
TdApi.BlockList blockList,
boolean canBeCalled,
boolean supportsVideoCalls,
boolean hasPrivateCalls,
boolean hasPrivateForwards,
boolean hasRestrictedVoiceAndVideoNoteMessages,
boolean hasPostedToProfileStories,
boolean hasSponsoredMessagesEnabled,
boolean needPhoneNumberPrivacyException,
boolean setChatBackground,
TdApi.FormattedText bio,
TdApi.Birthdate birthdate,
long personalChatId,
int giftCount,
int groupInCommonCount,
TdApi.BusinessInfo businessInfo,
TdApi.BotInfo botInfo)
Contains full information about a user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.ChatPhoto personalPhoto
public TdApi.ChatPhoto photo
public TdApi.ChatPhoto publicPhoto
public TdApi.BlockList blockList
public boolean canBeCalled
public boolean supportsVideoCalls
public boolean hasPrivateCalls
public boolean hasPrivateForwards
public boolean hasRestrictedVoiceAndVideoNoteMessages
public boolean hasPostedToProfileStories
public boolean hasSponsoredMessagesEnabled
public boolean needPhoneNumberPrivacyException
public boolean setChatBackground
public TdApi.FormattedText bio
public TdApi.Birthdate birthdate
public long personalChatId
public int giftCount
public int groupInCommonCount
public TdApi.BusinessInfo businessInfo
public TdApi.BotInfo botInfo
public static final int CONSTRUCTOR
public UserFullInfo()
public UserFullInfo(TdApi.ChatPhoto personalPhoto, TdApi.ChatPhoto photo, TdApi.ChatPhoto publicPhoto, TdApi.BlockList blockList, boolean canBeCalled, boolean supportsVideoCalls, boolean hasPrivateCalls, boolean hasPrivateForwards, boolean hasRestrictedVoiceAndVideoNoteMessages, boolean hasPostedToProfileStories, boolean hasSponsoredMessagesEnabled, boolean needPhoneNumberPrivacyException, boolean setChatBackground, TdApi.FormattedText bio, TdApi.Birthdate birthdate, long personalChatId, int giftCount, int groupInCommonCount, TdApi.BusinessInfo businessInfo, TdApi.BotInfo botInfo)
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.blockList - Block list to which the user is added; may be null if none.canBeCalled - True, if the user can be called.supportsVideoCalls - True, if a video call can be created with the user.hasPrivateCalls - True, if the user can't be called due to their privacy settings.hasPrivateForwards - True, if the user can't be linked in forwarded messages due to their privacy settings.hasRestrictedVoiceAndVideoNoteMessages - True, if voice and video notes can't be sent or forwarded to the user.hasPostedToProfileStories - True, if the user has posted to profile stories.hasSponsoredMessagesEnabled - True, if the user always enabled sponsored messages; known only for the current user.needPhoneNumberPrivacyException - True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.setChatBackground - True, if the user set chat background for both chat users and it wasn't reverted yet.bio - A short user bio; may be null for bots.birthdate - Birthdate of the user; may be null if unknown.personalChatId - Identifier of the personal chat of the user; 0 if none.giftCount - Number of gifts saved to profile by the user.groupInCommonCount - Number of group chats where both the other user and the current user are a member; 0 for the current user.businessInfo - Information about business settings for Telegram Business accounts; may be null if none.botInfo - For bots, information about the bot; may be null if the user isn't a bot.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object