Skip to content

setRecoveryEmail

Sahri Riza Umami edited this page Jun 9, 2017 · 3 revisions

Changes user recovery email.

setRecoveryEmail(password, new_recovery_email)
Option Description
password Current user password
new_recovery_email New recovery email.

Example

Set account recovery email to imel@anu.com.
Then open your email account to confirm the confirmation email from Telegram.

setRecoveryEmail('my53cr3tp455w0rd', 'imel@anu.com')

Response:

{
  ID = "PasswordState",
  has_password_ = true,
  has_recovery_email_ = true,
  password_hint_ = "anon",
  unconfirmed_recovery_email_pattern_ = "****@anu.com"
}

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally