TDLib v0.0.2 TDLib.Object.Session View Source
Contains information about one session in a Telegram application used by the current user.
Name | Type | Description |
---|---|---|
id | string | Session identifier. |
is_current | bool | True, if this session is the current session. |
api_id | number | Telegram API identifier, as provided by the application. |
application_name | string | Name of the application, as provided by the application. |
application_version | string | The version of the application, as provided by the application. |
is_official_application | bool | True, if the application is an official application or uses the api_id of an official application. |
device_model | string | Model of the device the application has been run or is running on, as provided by the application. |
platform | string | Operating system the application has been run or is running on, as provided by the application. |
system_version | string | Version of the operating system the application has been run or is running on, as provided by the application. |
log_in_date | number | Point in time (Unix timestamp) when the user has logged in. |
last_active_date | number | Point in time (Unix timestamp) when the session was last used. |
ip | string | IP address from which the session was created, in human-readable format. |
country | string | A two-letter country code for the country from which the session was created, based on the IP address. |
region | string | Region code from which the session was created, based on the IP address. |
More details on telegram’s documentation.