Session
Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order.
This is an alias for the SessionUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "session" | |
id | string | Session identifier |
isCurrent | boolean | True, if this session is the current session |
isPasswordPending | boolean | True, if a password is needed to complete authorization of the session |
canAcceptSecretChats | boolean | True, if incoming secret chats can be accepted by the session |
canAcceptCalls | boolean | True, if incoming calls can be accepted by the session |
apiId | number | Telegram API identifier, as provided by the application |
applicationName | string | Name of the application, as provided by the application |
applicationVersion | string | The version of the application, as provided by the application |
isOfficialApplication | boolean | True, if the application is an official application or uses the api_id of an official application |
deviceModel | 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 |
systemVersion | string | Version of the operating system the application has been run or is running on, as provided by the application |
logInDate | number | Point in time (Unix timestamp) when the user has logged in |
lastActiveDate | 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 |