MadelineProtoDocs/docs/API_docs/constructors/auth.loginToken.md
2020-06-16 17:50:25 +02:00

937 B

title description image redirect_from
auth.loginToken Login token (for [QR code login](https://core.telegram.org/api/qr-login)) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/auth_loginToken.html

Constructor: auth.loginToken

Back to constructors index

Login token (for QR code login)

Attributes:

Name Type Required Description
expires int Yes Expiry date of QR code
token bytes Yes Token to render in QR code

Type: auth.LoginToken

Example:

$auth.loginToken = ['_' => 'auth.loginToken', 'expires' => int, 'token' => 'bytes'];

Or, if you're into Lua:

auth.loginToken={_='auth.loginToken', expires=int, token='bytes'}