Layer 220
method Users
account.sendConfirmPhoneCode#1b3faa88 hash:string settings:CodeSettings = auth.SentCode;

Parameters

Name Type Description
Hash string The hash from the service notification, for more info click here
Settings CodeSettings Phone code settings

Returns

auth.SentCode

Possible Errors

Code Type Description
400 HASH_INVALID The provided hash is invalid.

Gogram Example

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