Layer 224
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.SentCode

Gogram Example

// AuthResetLoginEmail - positional arguments
result, err := client.AuthResetLoginEmail("Hello, World!", "Hello, World!")
if err != nil {
    // handle error
}
// result is *tg.AuthSentCode

Possible Errors

Code Type Description
400 PHONE_NUMBER_INVALID The phone number is invalid.
400 TASK_ALREADY_EXISTS An email reset was already requested.