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

Inherits td::td_api::Object.

Public Member Functions

 userFullInfo ()
 
 userFullInfo (object_ptr< chatPhoto > &&personal_photo_, object_ptr< chatPhoto > &&photo_, object_ptr< chatPhoto > &&public_photo_, object_ptr< BlockList > &&block_list_, bool can_be_called_, bool supports_video_calls_, bool has_private_calls_, bool has_private_forwards_, bool has_restricted_voice_and_video_note_messages_, bool has_pinned_stories_, bool need_phone_number_privacy_exception_, object_ptr< formattedText > &&bio_, array< object_ptr< premiumPaymentOption > > &&premium_gift_options_, int32 group_in_common_count_, object_ptr< botInfo > &&bot_info_)
 
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

object_ptr< chatPhotopersonal_photo_
 User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos.
 
object_ptr< chatPhotophoto_
 User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and personal_photo is null, then it is the same photo as in user.profile_photo and chat.photo.
 
object_ptr< chatPhotopublic_photo_
 User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personal_photo are null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos.
 
object_ptr< BlockListblock_list_
 Block list to which the user is added; may be null if none.
 
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 has_restricted_voice_and_video_note_messages_
 True, if voice and video notes can't be sent or forwarded to the user.
 
bool has_pinned_stories_
 True, if the user has pinned stories.
 
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.
 
object_ptr< formattedTextbio_
 A short user bio; may be null for bots.
 
array< object_ptr< premiumPaymentOption > > premium_gift_options_
 The list of available options for gifting Telegram Premium to the user.
 
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.
 
object_ptr< botInfobot_info_
 For bots, information about the bot; may be null if the user isn't a bot.
 

Static Public Attributes

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

Detailed Description

Contains full information about a user.

Constructor & Destructor Documentation

◆ userFullInfo() [1/2]

td::td_api::userFullInfo::userFullInfo ( )

Contains full information about a user.

◆ userFullInfo() [2/2]

td::td_api::userFullInfo::userFullInfo ( object_ptr< chatPhoto > &&  personal_photo_,
object_ptr< chatPhoto > &&  photo_,
object_ptr< chatPhoto > &&  public_photo_,
object_ptr< BlockList > &&  block_list_,
bool  can_be_called_,
bool  supports_video_calls_,
bool  has_private_calls_,
bool  has_private_forwards_,
bool  has_restricted_voice_and_video_note_messages_,
bool  has_pinned_stories_,
bool  need_phone_number_privacy_exception_,
object_ptr< formattedText > &&  bio_,
array< object_ptr< premiumPaymentOption > > &&  premium_gift_options_,
int32  group_in_common_count_,
object_ptr< botInfo > &&  bot_info_ 
)

Contains full information about a user.

Parameters
[in]personal_photo_User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos.
[in]photo_User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and personal_photo is null, then it is the same photo as in user.profile_photo and chat.photo.
[in]public_photo_User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personal_photo are null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos.
[in]block_list_Block list to which the user is added; may be null if none.
[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]has_restricted_voice_and_video_note_messages_True, if voice and video notes can't be sent or forwarded to the user.
[in]has_pinned_stories_True, if the user has pinned stories.
[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; may be null for bots.
[in]premium_gift_options_The list of available options for gifting Telegram Premium to the user.
[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]bot_info_For bots, information about the bot; may be null if the user isn't a bot.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::userFullInfo::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: