Inherits Object.
|
| user () |
|
| user (int53 id_, string const &first_name_, string const &last_name_, string const &username_, string const &phone_number_, object_ptr< UserStatus > &&status_, object_ptr< profilePhoto > &&profile_photo_, bool is_contact_, bool is_mutual_contact_, bool is_verified_, bool is_support_, string const &restriction_reason_, bool is_scam_, bool is_fake_, bool have_access_, object_ptr< UserType > &&type_, string const &language_code_) |
|
std::int32_t | get_id () const final |
|
void | store (TlStorerToString &s, const char *field_name) const final |
|
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 const std::int32_t | ID = -537797015 |
| Identifier uniquely determining a type of the object.
|
|
◆ user() [1/2]
◆ user() [2/2]
user |
( |
int53 |
id_, |
|
|
string const & |
first_name_, |
|
|
string const & |
last_name_, |
|
|
string const & |
username_, |
|
|
string const & |
phone_number_, |
|
|
object_ptr< UserStatus > && |
status_, |
|
|
object_ptr< profilePhoto > && |
profile_photo_, |
|
|
bool |
is_contact_, |
|
|
bool |
is_mutual_contact_, |
|
|
bool |
is_verified_, |
|
|
bool |
is_support_, |
|
|
string const & |
restriction_reason_, |
|
|
bool |
is_scam_, |
|
|
bool |
is_fake_, |
|
|
bool |
have_access_, |
|
|
object_ptr< UserType > && |
type_, |
|
|
string const & |
language_code_ |
|
) |
| |
Represents a user.
- Parameters
-
[in] | id_ | User identifier. |
[in] | first_name_ | First name of the user. |
[in] | last_name_ | Last name of the user. |
[in] | username_ | Username of the user. |
[in] | phone_number_ | Phone number of the user. |
[in] | status_ | Current online status of the user. |
[in] | profile_photo_ | Profile photo of the user; may be null. |
[in] | is_contact_ | The user is a contact of the current user. |
[in] | is_mutual_contact_ | The user is a contact of the current user and the current user is a contact of the user. |
[in] | is_verified_ | True, if the user is verified. |
[in] | is_support_ | True, if the user is Telegram support account. |
[in] | restriction_reason_ | If non-empty, it contains a human-readable description of the reason why access to this user must be restricted. |
[in] | is_scam_ | True, if many users reported this user as a scam. |
[in] | is_fake_ | True, if many users reported this user as a fake account. |
[in] | have_access_ | If false, the user is inaccessible, and the only information known about the user is inside this class. It can't be passed to any method except GetUser. |
[in] | type_ | Type of the user. |
[in] | language_code_ | IETF language tag of the user's language; only available to bots. |
◆ 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] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements TlObject.
The documentation for this class was generated from the following file: