List of all members | Public Fields | Public Instance Methods | Static Public Attributes
connectedWebsite Class Referencefinal

Inherits Object.

Description

Contains information about one website the current user is logged in with Telegram.

Public Fields

int64 id_
 Website identifier.
 
string domain_name_
 The domain name of the website.
 
int53 bot_user_id_
 User identifier of a bot linked with the website.
 
string browser_
 The version of a browser used to log in.
 
string platform_
 Operating system the browser is running on.
 
int32 log_in_date_
 Point in time (Unix timestamp) when the user was logged in.
 
int32 last_active_date_
 Point in time (Unix timestamp) when obtained authorization was last used.
 
string ip_
 IP address from which the user was logged in, in human-readable format.
 
string location_
 Human-readable description of a country and a region, from which the user was logged in, based on the IP address.
 

Public Instance Methods

 connectedWebsite ()
 
 connectedWebsite (int64 id_, string const &domain_name_, int53 bot_user_id_, string const &browser_, string const &platform_, int32 log_in_date_, int32 last_active_date_, string const &ip_, string const &location_)
 
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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = 844014445
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ connectedWebsite() [1/2]

Contains information about one website the current user is logged in with Telegram.

◆ connectedWebsite() [2/2]

connectedWebsite ( int64  id_,
string const &  domain_name_,
int53  bot_user_id_,
string const &  browser_,
string const &  platform_,
int32  log_in_date_,
int32  last_active_date_,
string const &  ip_,
string const &  location_ 
)

Contains information about one website the current user is logged in with Telegram.

Parameters
[in]id_Website identifier.
[in]domain_name_The domain name of the website.
[in]bot_user_id_User identifier of a bot linked with the website.
[in]browser_The version of a browser used to log in.
[in]platform_Operating system the browser is running on.
[in]log_in_date_Point in time (Unix timestamp) when the user was logged in.
[in]last_active_date_Point in time (Unix timestamp) when obtained authorization was last used.
[in]ip_IP address from which the user was logged in, in human-readable format.
[in]location_Human-readable description of a country and a region, from which the user was logged in, based on the IP address.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: