Layer 220
method Users
auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;

Parameters

Name Type Description
PhoneNumber string Phone number
PhoneCodeHash string Phone code hash from auth. send Code

Returns

Bool

Possible Errors

Code Type Description
400 PHONE_CODE_EXPIRED The phone code you provided has expired.
406 PHONE_NUMBER_INVALID The phone number is invalid.

Gogram Example

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