lib/tdlib/client_methods.rb
# Creates a new temporary password for processing payments.
#
# @param password [TD::Types::String] Persistent user password.
# @param valid_for [Integer] Time during which the temporary password will be valid, in seconds; must be between 60
#   and 86400.
# @return [TD::Types::TemporaryPasswordState]
Creates a new temporary password for processing payments.
Creates a new temporary password for processing payments .
def create_temporary_password(password:, valid_for:)
    broadcast('@type'     => 'createTemporaryPassword',
              'password'  => password,
              'valid_for' => valid_for)
  end
def create_temporary_password ( password : , valid_for : ) broadcast ( '@type' => 'createTemporaryPassword' , 'password' => password , 'valid_for' => valid_for ) end
Creates a new temporary password for processing payments.
Creates a new temporary password for processing payments .
None
TD::Types::TemporaryPasswordState
password
Persistent user password.
Persistent user password .
valid_for
Time during which the temporary password will be valid, in seconds; must be between 60 and 86400.
Time during which the temporary password will be valid in seconds ; must be between 60 and 86400 .