Constructor: authorization
Logged-in session
Attributes:
Name | Type | Required | Description |
---|---|---|---|
current | Bool | Optional | Whether this is the current session |
official_app | Bool | Optional | Whether the session is from an official app |
password_pending | Bool | Optional | Whether the session is still waiting for a 2FA password |
encrypted_requests_disabled | Bool | Optional | Whether this session will accept encrypted chats |
call_requests_disabled | Bool | Optional | Whether this session will accept phone calls |
unconfirmed | Bool | Optional | Whether the session is unconfirmed, see here » for more info. |
hash | long | Yes | Identifier |
device_model | string | Yes | Device model |
platform | string | Yes | Platform |
system_version | string | Yes | System version |
api_id | int | Yes | API ID |
app_name | string | Yes | App name |
app_version | string | Yes | App version |
date_created | int | Yes | When was the session created |
date_active | int | Yes | When was the session last active |
ip | string | Yes | Last known IP |
country | string | Yes | Country determined from IP |
region | string | Yes | Region determined from IP |
Type: Authorization
Example:
$authorization = ['_' => 'authorization', 'current' => Bool, 'official_app' => Bool, 'password_pending' => Bool, 'encrypted_requests_disabled' => Bool, 'call_requests_disabled' => Bool, 'unconfirmed' => Bool, 'hash' => long, 'device_model' => 'string', 'platform' => 'string', 'system_version' => 'string', 'api_id' => int, 'app_name' => 'string', 'app_version' => 'string', 'date_created' => int, 'date_active' => int, 'ip' => 'string', 'country' => 'string', 'region' => 'string'];