Layer 224
method Users
account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;

Parameters

Name Type Description
PhoneCodeHash string Phone code hash, for more info click here
PhoneCode string SMS code, for more info click here

Returns

Bool

Gogram Example

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

Possible Errors

Code Type Description
400 CODE_HASH_INVALID Code hash invalid.
400 PHONE_CODE_EMPTY phone_code is missing.