Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>account_Password_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class account_Password_
import { account_Password_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Configuration for two-factor authorization

Constructors

new
account_Password_(params: { has_recovery?: true; has_secure_values?: true; has_password?: true; current_algo?: enums.PasswordKdfAlgo; srp_B?: Uint8Array; srp_id?: bigint; hint?: string; email_unconfirmed_pattern?: string; new_algo: enums.PasswordKdfAlgo; new_secure_algo: enums.SecurePasswordKdfAlgo; secure_random: Uint8Array; pending_reset_date?: number; login_email_pattern?: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
current_algo: enums.PasswordKdfAlgo
optional
email_unconfirmed_pattern: string

A password recovery email with the specified pattern is still awaiting verification

optional
has_password: true

Whether the user has a password

optional
has_recovery: true

Whether the user has a recovery method configured

optional
has_secure_values: true

Whether telegram passport is enabled

optional
hint: string

Text hint for the password

optional
login_email_pattern: string

A verified login email with the specified pattern is configured

new_algo: enums.PasswordKdfAlgo

The KDF algorithm for SRP two-factor authentication to use when creating new passwords

new_secure_algo: enums.SecurePasswordKdfAlgo

The KDF algorithm for telegram passport

optional
pending_reset_date: number

The 2FA password will be automatically removed at this date, unless the user cancels the operation

secure_random: Uint8Array

Secure random string

optional
srp_B: Uint8Array

Srp B param for SRP authorization

optional
srp_id: bigint

Srp ID param for SRP authorization

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc