Function enableCloudPassword
- enableCloudPassword(
client: ITelegramClient,
params: { email?: string; hint?: string; password: string },
): Promise<void> Parameters
- client: ITelegramClient
- params: { email?: string; hint?: string; password: string }
Optionalemail?: string
Optionalhint?: string
password: string
Returns Promise<void>
Enable 2FA password on your account
Note that if you pass
email,EmailUnconfirmedErrormay be thrown, and you should use verifyPasswordEmail, resendPasswordEmail or cancelPasswordEmail, and the call this method again