acceptLoginToken
Accept QR code login token, logging in the app that generated it. Returns info about the new session. For more info, see login via QR code.
bindTempAuthKey
Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one. For more information, see Perfect Forward Secrecy.
cancelCode
Cancel the login verification code
checkPaidAuth
Checks the status of a login payment.
checkPassword
Try logging to an account protected by a 2FA password.
checkRecoveryPassword
Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword.
dropTempAuthKeys
Delete all temporary authorization keys except for the ones specified
exportAuthorization
Returns data for copying authorization to another data-center.
exportLoginToken
Generate a login token, for login via QR code. The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken deep link ยป in the QR code. For more info, see login via QR code.
finishPasskeyLogin
Complete login with a passkey over an unauthenticated connection, see here ยป for more info. Must be sent to the user's native DC, as specified by the user_handle (dcId:userId) returned in the passkey assertion, see here ยป for the full flow.
importAuthorization
Logs in a user using a key transmitted from his native data-center.
importBotAuthorization
Login as a bot
importLoginToken
Login using a redirected login token, generated in case of DC mismatch during QR code login. For more info, see login via QR code.
importWebTokenAuthorization
Login by importing an authorization token
initPasskeyLogin
Initialize login with a passkey over an unauthenticated connection, see here ยป for more info.
logOut
Logs out the user.
recoverPassword
Reset the 2FA password using the recovery code sent using auth requestPasswordRecovery.
reportMissingCode
Official apps only, reports that the SMS authentication code wasn't delivered.
requestFirebaseSms
Request an SMS code via Firebase.
requestPasswordRecovery
Request recovery code of a 2FA password, only for accounts with a recovery email configured.
resendCode
Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.
resetAuthorizations
Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method account.registerDevice
resetLoginEmail
Reset the login email ยป.
sendCode
Send the verification code for login
signIn
Signs in a user with a validated phone number.
signUp
Registers a validated phone number in the system.