Logged-in session
Constructor schema is available as of layer 88. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
current | flags.0?true | Whether this is the current session |
official_app | flags.1?true | Whether the session is from an official app |
password_pending | flags.2?true | Whether the session is still waiting for a 2FA password |
encrypted_requests_disabled | flags.3?true | Whether this session will accept encrypted chats |
call_requests_disabled | flags.4?true | Whether this session will accept phone calls |
unconfirmed | flags.5?true | Whether the session is unconfirmed, see here » for more info. |
hash | long | Identifier |
device_model | string | Device model |
platform | string | Platform |
system_version | string | System version |
api_id | int | API ID |
app_name | string | App name |
app_version | string | App version |
date_created | int | When was the session created |
date_active | int | When was the session last active |
ip | string | Last known IP |
country | string | Country determined from IP |
region | string | Region determined from IP |
How to register a user's phone to start using the API.
How to get your application identifier and create a new Telegram app.