Module tdlight.api

Class TdApi.CreateTemporaryPassword

Enclosing class:
TdApi

public static final class TdApi.CreateTemporaryPassword extends TdApi.Function<TdApi.TemporaryPasswordState>
Creates a new temporary password for processing payments.

Returns TemporaryPasswordState

  • Field Details

    • password

      public String password
      The 2-step verification password of the current user.
    • validFor

      public int validFor
      Time during which the temporary password will be valid, in seconds; must be between 60 and 86400.
    • CONSTRUCTOR

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

    • CreateTemporaryPassword

      public CreateTemporaryPassword()
      Creates a new temporary password for processing payments.

      Returns TemporaryPasswordState

    • CreateTemporaryPassword

      public CreateTemporaryPassword(String password, int validFor)
      Creates a new temporary password for processing payments.

      Returns TemporaryPasswordState

      Parameters:
      password - The 2-step verification password of the current user.
      validFor - Time during which the temporary password will be valid, in seconds; must be between 60 and 86400.

      Returns TemporaryPasswordState

    • CreateTemporaryPassword

      public CreateTemporaryPassword(DataInput input) throws IOException
      Creates a new temporary password for processing payments.

      Returns TemporaryPasswordState

      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