pub struct Session {Show 14 fields
pub id: i64,
pub is_current: bool,
pub api_id: i32,
pub application_name: String,
pub application_version: String,
pub is_official_application: bool,
pub device_model: String,
pub platform: String,
pub system_version: String,
pub log_in_date: i32,
pub last_active_date: i32,
pub ip: String,
pub country: String,
pub region: String,
}
Expand description
Contains information about one session in a Telegram application used by the current user
Fields§
§id: i64
Session identifier
is_current: bool
True, if this session is the current session
api_id: i32
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: i32
Point in time (Unix timestamp) when the user has logged in
last_active_date: i32
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