Layer 220
AuthResetLoginEmail
Reset the login email.
method
Users
auth.resetLoginEmail#7e960193 phone_number:string phone_code_hash:string = auth.SentCode;
Parameters
| Name | Type | Description |
|---|---|---|
| PhoneNumber | string | Phone number of the account |
| PhoneCodeHash | string | Phone code hash, obtained as described in the documentation |
Returns
auth.SentCodePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PHONE_NUMBER_INVALID | The phone number is invalid. |
| 400 | TASK_ALREADY_EXISTS | An email reset was already requested. |
Gogram Example
// AuthResetLoginEmail - positional arguments result, err := client.AuthResetLoginEmail("...", "...") if err != nil { // handle error } // result is *tg.AuthSentCode