Airgram

Guides
/
/
Output types

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.


NameTypeDescription
_"session"
idstring Session identifier
isCurrentboolean True, if this session is the current session
isPasswordPendingboolean True, if a password is needed to complete authorization of the session
canAcceptSecretChatsboolean True, if incoming secret chats can be accepted by the session
canAcceptCallsboolean True, if incoming calls can be accepted by the session
apiIdnumber Telegram API identifier, as provided by the application
applicationNamestring Name of the application, as provided by the application
applicationVersionstring The version of the application, as provided by the application
isOfficialApplicationboolean True, if the application is an official application or uses the api_id of an official application
deviceModelstring Model of the device the application has been run or is running on, as provided by the application
platformstring Operating system the application has been run or is running on, as provided by the application
systemVersionstring Version of the operating system the application has been run or is running on, as provided by the application
logInDatenumber Point in time (Unix timestamp) when the user has logged in
lastActiveDatenumber Point in time (Unix timestamp) when the session was last used
ipstring IP address from which the session was created, in human-readable format
countrystring A two-letter country code for the country from which the session was created, based on the IP address
regionstring Region code from which the session was created, based on the IP address