Inherits Object.
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.
Public Fields | |
int64 | id_ |
Session identifier. | |
bool | is_current_ |
True, if this session is the current session. | |
bool | is_password_pending_ |
True, if a password is needed to complete authorization of the session. | |
bool | can_accept_secret_chats_ |
True, if incoming secret chats can be accepted by the session. | |
bool | can_accept_calls_ |
True, if incoming calls can be accepted by the session. | |
int32 | api_id_ |
Telegram API identifier, as provided by the application. | |
string | application_name_ |
Name of the application, as provided by the application. | |
string | application_version_ |
The version of the application, as provided by the application. | |
bool | is_official_application_ |
True, if the application is an official application or uses the api_id of an official application. | |
string | device_model_ |
Model of the device the application has been run or is running on, as provided by the application. | |
string | platform_ |
Operating system the application has been run or is running on, as provided by the application. | |
string | system_version_ |
Version of the operating system the application has been run or is running on, as provided by the application. | |
int32 | log_in_date_ |
Point in time (Unix timestamp) when the user has logged in. | |
int32 | last_active_date_ |
Point in time (Unix timestamp) when the session was last used. | |
string | ip_ |
IP address from which the session was created, in human-readable format. | |
string | country_ |
A two-letter country code for the country from which the session was created, based on the IP address. | |
string | region_ |
Region code from which the session was created, based on the IP address. | |
Public Instance Methods | |
session () | |
session (int64 id_, bool is_current_, bool is_password_pending_, bool can_accept_secret_chats_, bool can_accept_calls_, int32 api_id_, string const &application_name_, string const &application_version_, bool is_official_application_, string const &device_model_, string const &platform_, string const &system_version_, int32 log_in_date_, int32 last_active_date_, string const &ip_, string const &country_, string const ®ion_) | |
std::int32_t | get_id () const final |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = 1068672887 |
Identifier uniquely determining a type of the object. | |
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.
session | ( | int64 | id_, |
bool | is_current_, | ||
bool | is_password_pending_, | ||
bool | can_accept_secret_chats_, | ||
bool | can_accept_calls_, | ||
int32 | api_id_, | ||
string const & | application_name_, | ||
string const & | application_version_, | ||
bool | is_official_application_, | ||
string const & | device_model_, | ||
string const & | platform_, | ||
string const & | system_version_, | ||
int32 | log_in_date_, | ||
int32 | last_active_date_, | ||
string const & | ip_, | ||
string const & | country_, | ||
string const & | region_ | ||
) |
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.
[in] | id_ | Session identifier. |
[in] | is_current_ | True, if this session is the current session. |
[in] | is_password_pending_ | True, if a password is needed to complete authorization of the session. |
[in] | can_accept_secret_chats_ | True, if incoming secret chats can be accepted by the session. |
[in] | can_accept_calls_ | True, if incoming calls can be accepted by the session. |
[in] | api_id_ | Telegram API identifier, as provided by the application. |
[in] | application_name_ | Name of the application, as provided by the application. |
[in] | application_version_ | The version of the application, as provided by the application. |
[in] | is_official_application_ | True, if the application is an official application or uses the api_id of an official application. |
[in] | device_model_ | Model of the device the application has been run or is running on, as provided by the application. |
[in] | platform_ | Operating system the application has been run or is running on, as provided by the application. |
[in] | system_version_ | Version of the operating system the application has been run or is running on, as provided by the application. |
[in] | log_in_date_ | Point in time (Unix timestamp) when the user has logged in. |
[in] | last_active_date_ | Point in time (Unix timestamp) when the session was last used. |
[in] | ip_ | IP address from which the session was created, in human-readable format. |
[in] | country_ | A two-letter country code for the country from which the session was created, based on the IP address. |
[in] | region_ | Region code from which the session was created, based on the IP address. |
|
inlinefinalvirtual |
|
finalvirtual |