Layer 220
method Users
account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool;

Parameters

Name Type Description
PhoneNumber string Phone number
PhoneCodeHash string Phone code hash received from the call to account. send Verify Phone Code
PhoneCode string Code received after the call to account. send Verify Phone Code

Returns

Bool

Possible Errors

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

Gogram Example

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