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

Inherits Object.

Description

Contains basic information about another user that started a chat with the current user.

Public Fields

int32 registration_month_
 Month when the user was registered in Telegram; 0-12; may be 0 if unknown.
 
int32 registration_year_
 Year when the user was registered in Telegram; 0-9999; may be 0 if unknown.
 
string phone_number_country_code_
 A two-letter ISO 3166-1 alpha-2 country code based on the phone number of the user; may be empty if unknown.
 
int32 last_name_change_date_
 Point in time (Unix timestamp) when the user changed name last time; 0 if unknown.
 
int32 last_photo_change_date_
 Point in time (Unix timestamp) when the user changed photo last time; 0 if unknown.
 

Public Instance Methods

 accountInfo ()
 
 accountInfo (int32 registration_month_, int32 registration_year_, string const &phone_number_country_code_, int32 last_name_change_date_, int32 last_photo_change_date_)
 
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 = 1803492711
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ accountInfo() [1/2]

Contains basic information about another user that started a chat with the current user.

◆ accountInfo() [2/2]

accountInfo ( int32  registration_month_,
int32  registration_year_,
string const &  phone_number_country_code_,
int32  last_name_change_date_,
int32  last_photo_change_date_ 
)

Contains basic information about another user that started a chat with the current user.

Parameters
[in]registration_month_Month when the user was registered in Telegram; 0-12; may be 0 if unknown.
[in]registration_year_Year when the user was registered in Telegram; 0-9999; may be 0 if unknown.
[in]phone_number_country_code_A two-letter ISO 3166-1 alpha-2 country code based on the phone number of the user; may be empty if unknown.
[in]last_name_change_date_Point in time (Unix timestamp) when the user changed name last time; 0 if unknown.
[in]last_photo_change_date_Point in time (Unix timestamp) when the user changed photo last time; 0 if unknown.

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