telegram api method · layer 229 · #b7e085fe

auth.exportLoginToken

usable by users

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.

definition

auth.exportLoginToken#b7e085fe api_id:int api_hash:string except_ids:Vector<long> = auth.LoginToken;

parameters

nametypedescription
api_idintApplication identifier (see. App configuration)
api_hashstringApplication identifier hash (see. App configuration)
except_idsVector<long>List of already logged-in user IDs, to prevent logging in twice with the same user

returns

auth.LoginToken

errors (4)

codeerrordescription
400API_ID_INVALIDAPI ID invalid.
400API_ID_PUBLISHED_FLOODThis API id was published somewhere, you can't use it now.
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
500AUTH_RESTARTRestart the authorization process.

history

present in layers 107–229 · constructor id changed 1×

idlayers
#b1b41517107–132
#b7e085fe133–229