TDLib
Loading...
Searching...
No Matches
td::td_api::connectedWebsite Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 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_address_, string const &location_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

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_address_
 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.
 

Static Public Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ connectedWebsite() [1/2]

td::td_api::connectedWebsite::connectedWebsite ( )

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

◆ connectedWebsite() [2/2]

td::td_api::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_address_,
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_address_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.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::connectedWebsite::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::connectedWebsite::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 td::TlObject.


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