mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 13:06:55 +01:00
1.4 KiB
1.4 KiB
title | description |
---|---|
authStateWaitCode | TDLib needs user authentication code to finish authorization |
Constructor: authStateWaitCode
TDLib needs user authentication code to finish authorization
Attributes:
Name | Type | Required | Description |
---|---|---|---|
is_registered | Bool | Yes | True, if user is already registered |
code_type | AuthCodeType | Yes | Describes the way, code was sent to the user |
next_code_type | AuthCodeType | Yes | Describes the way, next code will be sent to the user, nullable |
timeout | int | Yes | Timeout in seconds before code should be resent by calling resendAuthCode |
Type: AuthState
Example:
$authStateWaitCode = ['_' => 'authStateWaitCode', 'is_registered' => Bool, 'code_type' => AuthCodeType, 'next_code_type' => AuthCodeType, 'timeout' => int];
PWRTelegram json-encoded version:
{"_": "authStateWaitCode", "is_registered": Bool, "code_type": AuthCodeType, "next_code_type": AuthCodeType, "timeout": int}
Or, if you're into Lua:
authStateWaitCode={_='authStateWaitCode', is_registered=Bool, code_type=AuthCodeType, next_code_type=AuthCodeType, timeout=int}