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

Inherits Object.

Description

Contains full information about a user.

Public Fields

object_ptr< chatPhotophoto_
 User profile photo; may be null.
 
bool is_blocked_
 True, if the user is blocked by the current user.
 
bool can_be_called_
 True, if the user can be called.
 
bool supports_video_calls_
 True, if a video call can be created with the user.
 
bool has_private_calls_
 True, if the user can't be called due to their privacy settings.
 
bool has_private_forwards_
 True, if the user can't be linked in forwarded messages due to their privacy settings.
 
bool need_phone_number_privacy_exception_
 True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.
 
string bio_
 A short user bio.
 
string share_text_
 For bots, the text that is shown on the bot's profile page and is sent together with the link when users share the bot.
 
string description_
 For bots, the text shown in the chat with the bot if the chat is empty.
 
int32 group_in_common_count_
 Number of group chats where both the other user and the current user are a member; 0 for the current user.
 
array< object_ptr< botCommand > > commands_
 For bots, list of the bot commands.
 

Public Instance Methods

 userFullInfo ()
 
 userFullInfo (object_ptr< chatPhoto > &&photo_, bool is_blocked_, bool can_be_called_, bool supports_video_calls_, bool has_private_calls_, bool has_private_forwards_, bool need_phone_number_privacy_exception_, string const &bio_, string const &share_text_, string const &description_, int32 group_in_common_count_, array< object_ptr< botCommand >> &&commands_)
 
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 = 2138747126
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ userFullInfo() [1/2]

Contains full information about a user.

◆ userFullInfo() [2/2]

userFullInfo ( object_ptr< chatPhoto > &&  photo_,
bool  is_blocked_,
bool  can_be_called_,
bool  supports_video_calls_,
bool  has_private_calls_,
bool  has_private_forwards_,
bool  need_phone_number_privacy_exception_,
string const &  bio_,
string const &  share_text_,
string const &  description_,
int32  group_in_common_count_,
array< object_ptr< botCommand >> &&  commands_ 
)

Contains full information about a user.

Parameters
[in]photo_User profile photo; may be null.
[in]is_blocked_True, if the user is blocked by the current user.
[in]can_be_called_True, if the user can be called.
[in]supports_video_calls_True, if a video call can be created with the user.
[in]has_private_calls_True, if the user can't be called due to their privacy settings.
[in]has_private_forwards_True, if the user can't be linked in forwarded messages due to their privacy settings.
[in]need_phone_number_privacy_exception_True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used.
[in]bio_A short user bio.
[in]share_text_For bots, the text that is shown on the bot's profile page and is sent together with the link when users share the bot.
[in]description_For bots, the text shown in the chat with the bot if the chat is empty.
[in]group_in_common_count_Number of group chats where both the other user and the current user are a member; 0 for the current user.
[in]commands_For bots, list of the bot commands.

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: