Module tdlight.api

Class TdApi.GetUser

Enclosing class:
TdApi

public static final class TdApi.GetUser extends TdApi.Function<TdApi.User>
Returns information about a user by their identifier. This is an offline request if the current user is not a bot.

Returns User

  • Field Details

    • userId

      public long userId
      User identifier.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetUser

      public GetUser()
      Returns information about a user by their identifier. This is an offline request if the current user is not a bot.

      Returns User

    • GetUser

      public GetUser(long userId)
      Returns information about a user by their identifier. This is an offline request if the current user is not a bot.

      Returns User

      Parameters:
      userId - User identifier.

      Returns User

    • GetUser

      public GetUser(DataInput input) throws IOException
      Returns information about a user by their identifier. This is an offline request if the current user is not a bot.

      Returns User

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object