--- title: authStateOk description: User is successfully authorized. TDLib can answer queries --- ## Constructor: authStateOk [Back to constructors index](index.md) User is successfully authorized. TDLib can answer queries ### Attributes: | Name | Type | Required | Description | |----------|:-------------:|:--------:|------------:| ### Type: [AuthState](../types/AuthState.md) ### Example: ``` $authStateOk = ['_' => 'authStateOk']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` {"_": "authStateOk"} ``` Or, if you're into Lua: ``` authStateOk={_='authStateOk'} ```