account.registerPasskey #

Complete passkey registration for the current account, see here » for more info on the full flow.

Layer 223

passkey#98613ebf flags:# id:string name:string date:int software_emoji_id:flags.0?long last_usage_date:flags.1?int = Passkey;
---functions---
account.registerPasskey#55b41fd6 credential:InputPasskeyCredential = Passkey;

Parameters #

NameTypeDescription
credentialInputPasskeyCredentialRegistration result.

Result #

Passkey

Only users can use this method #

Possible errors #

CodeTypeDescription
400CREDENTIAL_INVALIDThe specified credential is invalid.
400PASSKEY_ORIGIN_MISMATCHThird-party clients currently don't support passkeys even when changing the origin.

Passkey login #

Log in to Telegram instantly with a passkey using a PIN or biometrics instead of an SMS code.