Layer 227
AccountRegisterPasskey
Complete passkey registration for the current account, see here for more info on the full flow.
method
Users
account.registerPasskey#55b41fd6 credential:InputPasskeyCredential = Passkey;
Parameters
| Name | Type | Description |
|---|---|---|
| Credential | InputPasskeyCredential | Registration result. |
Returns
PasskeyGogram Example
// AccountRegisterPasskey - positional arguments result, err := client.AccountRegisterPasskey(&tg.InputPasskeyCredential{}) if err != nil { // handle error } // result is *tg.Passkey
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CREDENTIAL_INVALID | The specified credential is invalid. |
| 400 | PASSKEY_ORIGIN_MISMATCH | Third-party clients currently don't support passkeys even when changing the origin. |