Layer 220
AuthCancelCode
Cancel the login verification code
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
BoolPossible 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