pub struct Session {Show 18 fields
pub id: i64,
pub is_current: bool,
pub is_password_pending: bool,
pub is_unconfirmed: bool,
pub can_accept_secret_chats: bool,
pub can_accept_calls: bool,
pub type: SessionType,
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_address: String,
pub location: String,
}Expand description
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
Fields§
§id: i64Session identifier
is_current: boolTrue, if this session is the current session
is_password_pending: boolTrue, if a 2-step verification password is needed to complete authorization of the session
is_unconfirmed: boolTrue, if the session wasn’t confirmed from another session
can_accept_secret_chats: boolTrue, if incoming secret chats can be accepted by the session
can_accept_calls: boolTrue, if incoming calls can be accepted by the session
type: SessionTypeSession type based on the system and application version, which can be used to display a corresponding icon
api_id: i32Telegram API identifier, as provided by the application
application_name: StringName of the application, as provided by the application
application_version: StringThe version of the application, as provided by the application
is_official_application: boolTrue, if the application is an official application or uses the api_id of an official application
device_model: StringModel of the device the application has been run or is running on, as provided by the application
platform: StringOperating system the application has been run or is running on, as provided by the application
system_version: StringVersion of the operating system the application has been run or is running on, as provided by the application
log_in_date: i32Point in time (Unix timestamp) when the user has logged in
last_active_date: i32Point in time (Unix timestamp) when the session was last used
ip_address: StringIP address from which the session was created, in human-readable format
location: StringA human-readable description of the location from which the session was created, based on the IP address