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