Layer 220
AccountSendVerifyPhoneCode
Send the verification phone code for telegram passport.
method
Users
account.sendVerifyPhoneCode#a5a356f9 phone_number:string settings:CodeSettings = auth.SentCode;
Parameters
| Name | Type | Description |
|---|---|---|
| PhoneNumber | string | The phone number to verify |
| Settings | CodeSettings | Phone code settings |
Returns
auth.SentCodePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PHONE_NUMBER_INVALID | The phone number is invalid. |
Gogram Example
// AccountSendVerifyPhoneCode - positional arguments result, err := client.AccountSendVerifyPhoneCode("...", &tg.CodeSettings{}) if err != nil { // handle error } // result is *tg.AuthSentCode