From 345b789bbd8fea0eeb702edd5d3f982ebf02e65c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 10 Sep 2022 16:15:57 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/account-deletion.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/data/web/corefork.telegram.org/api/account-deletion.html b/data/web/corefork.telegram.org/api/account-deletion.html index 4e612b6aad..45c14ad2ff 100644 --- a/data/web/corefork.telegram.org/api/account-deletion.html +++ b/data/web/corefork.telegram.org/api/account-deletion.html @@ -54,17 +54,19 @@ If the account has a 2FA password and it is provided to <

In this case, if the account's 2FA password was modified more than 7 days ago and was active in the last 7 days, account deletion will be delayed for 7 days. Otherwise, the account will be immediately deleted.
In the first case, a service message will be sent to the user, containing a phone number confirmation link ยป.

-

When such a link is clicked, account.sendConfirmPhoneCode must be called with the specified hash, using the account with the specified phone number. -This will send a phone number verification code to the phone number associated with the account. +

When such a link is clicked, account.sendConfirmPhoneCode must be called with the specified hash, using the account with the specified phone number.
+This will send a phone number verification code to the phone number associated with the account.
The phone code settings are the same as for the login code, and auth.cancelCode with auth.resendCode can be used as well, to resend or cancel the phone code as for the login code.

Once the SMS code is received, the account.confirmPhone method will have to be called with the SMS code and the phone hash received from the account.sendConfirmPhoneCode method.

-

This will cancel deletion of the account and will log out the user that tried to reset it. -Otherwise, if the number isn't confirmed in 7 days, the account will be deleted and the user will be free to recreate it.

+

This will cancel deletion of the account and will log out the user that tried to reset it.
+Otherwise, if the number isn't confirmed in 7 days, the account will be deleted and the user will be free to recreate it.

Related articles

User Authorization

How to register a user's phone to start using the API.

Two-factor authentication

-

How to login to a user's account if they have enabled 2FA, how to change password.

+

How to login to a user's account if they have enabled 2FA, how to change password.

+

Deep links

+

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.