Class TdApi.CreateTemporaryPassword

Enclosing class:
TdApi

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

Returns TemporaryPasswordState

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    The 2-step verification password of the current user.
    int
    Time during which the temporary password will be valid, in seconds; must be between 60 and 86400.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which creates a new temporary password for processing payments.
    CreateTemporaryPassword(String password, int validFor)
    Creates a function, which creates a new temporary password for processing payments.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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()
      Default constructor for a function, which creates a new temporary password for processing payments.

      Returns TemporaryPasswordState

    • CreateTemporaryPassword

      public CreateTemporaryPassword(String password, int validFor)
      Creates a function, which 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.
  • 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