TDLib v0.0.2 TDLib.Object.Session View Source

Contains information about one session in a Telegram application used by the current user.

NameTypeDescription
idstringSession identifier.
is_currentboolTrue, if this session is the current session.
api_idnumberTelegram API identifier, as provided by the application.
application_namestringName of the application, as provided by the application.
application_versionstringThe version of the application, as provided by the application.
is_official_applicationboolTrue, if the application is an official application or uses the api_id of an official application.
device_modelstringModel of the device the application has been run or is running on, as provided by the application.
platformstringOperating system the application has been run or is running on, as provided by the application.
system_versionstringVersion of the operating system the application has been run or is running on, as provided by the application.
log_in_datenumberPoint in time (Unix timestamp) when the user has logged in.
last_active_datenumberPoint in time (Unix timestamp) when the session was last used.
ipstringIP address from which the session was created, in human-readable format.
countrystringA two-letter country code for the country from which the session was created, based on the IP address.
regionstringRegion code from which the session was created, based on the IP address.

More details on telegram’s documentation.