TDLib
Loading...
Searching...
No Matches
connectedWebsite Class Referencefinal

Inherits Object.

Description

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

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_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

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 domain_name_
 The domain name of the website.
int64 id_
 Website identifier.
string ip_address_
 IP address from which the user was logged in, in human-readable format.
int32 last_active_date_
 Point in time (Unix timestamp) when obtained authorization was last used.
string location_
 Human-readable description of a country and a region from which the user was logged in, based on the IP address.
int32 log_in_date_
 Point in time (Unix timestamp) when the user was logged in.
string platform_
 Operating system the browser is running on.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ connectedWebsite() [1/2]

connectedWebsite ( )

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_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

◆ 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: