Class TdApi.UserFullInfo

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.UserFullInfo
Enclosing class:
TdApi

public static class TdApi.UserFullInfo
extends TdApi.Object
Contains full information about a user.
  • Field Details

    • photo

      public TdApi.ChatPhoto photo
      User profile photo; may be null.
    • isBlocked

      public boolean isBlocked
      True, if the user is blocked by the current user.
    • canBeCalled

      public boolean canBeCalled
      True, if the user can be called.
    • supportsVideoCalls

      public boolean supportsVideoCalls
      True, if a video call can be created with the user.
    • hasPrivateCalls

      public boolean hasPrivateCalls
      True, if the user can't be called due to their privacy settings.
    • needPhoneNumberPrivacyException

      public 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.
    • bio

      public String bio
      A short user bio.
    • shareText

      public String shareText
      For bots, the text that is included with the link when users share the bot.
    • groupInCommonCount

      public int groupInCommonCount
      Number of group chats where both the other user and the current user are a member; 0 for the current user.
    • botInfo

      public TdApi.BotInfo botInfo
      If the user is a bot, information about the bot; may be null.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • UserFullInfo

      public UserFullInfo()
      Contains full information about a user.
    • UserFullInfo

      public UserFullInfo​(TdApi.ChatPhoto photo, boolean isBlocked, boolean canBeCalled, boolean supportsVideoCalls, boolean hasPrivateCalls, boolean needPhoneNumberPrivacyException, String bio, String shareText, int groupInCommonCount, TdApi.BotInfo botInfo)
      Contains full information about a user.
      Parameters:
      photo - ChatPhoto User profile photo; may be null.
      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.
      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 - String A short user bio.
      shareText - String For bots, the text that is included with the link when users share the bot.
      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 If the user is a bot, information about the bot; may be null.
    • UserFullInfo

      public UserFullInfo​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details