Interface SelfUser

    • Method Detail

      • getApplicationIdLong

        long getApplicationIdLong()
        The associated application id for the bot account.
        For most bots this is identical to the user id.
        Returns:
        The application id
      • getApplicationId

        @Nonnull
        default java.lang.String getApplicationId()
        The associated application id for the bot account.
        For most bots this is identical to the user id.
        Returns:
        The application id
      • isVerified

        boolean isVerified()
        The status of this account's verification. (Have you accepted the verification email)
        Returns:
        True, if this account is verified.
      • isMfaEnabled

        boolean isMfaEnabled()
        If true, this account is protected by Multi-Factor authorization.
        If this is a Client account, then this describes the MFA status of the Client account.
        If this is a Bot account, then this describes the MFA status of the Client account that owns this Bot.
        Returns:
        True, if this account has MFA protecting it.
      • getAllowedFileSize

        long getAllowedFileSize()
        Returns the maximum size for files that can be uploaded with this account.
        Returns 8388608 for bots.
        Returns:
        The maximum size for files that can be uploaded with this account
        See Also:
        Message.MAX_FILE_SIZE
      • getManager

        @Nonnull
        AccountManager getManager()
        The AccountManager for the currently logged in account.
        This can be used to atomically set account fields (like avatar/username) You modify multiple fields in one request by chaining setters before calling RestAction.queue().

        This is a lazy idempotent getter. The manager is retained after the first call. This getter is not thread-safe and would require guards by the user.

        Returns:
        An AccountManager instance for the current account