TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
giftSettings Class Referencefinal

Inherits Object.

Description

Contains settings for gift receiving for a user.

Public Member Functions

 giftSettings ()
 
 giftSettings (bool show_gift_button_, object_ptr< acceptedGiftTypes > &&accepted_gift_types_)
 
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

object_ptr< acceptedGiftTypes > accepted_gift_types_
 Types of gifts accepted by the user; for Telegram Premium users only.
 
bool show_gift_button_
 True, if a button for sending a gift to the user or by the user must always be shown in the input field.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ giftSettings() [1/2]

Contains settings for gift receiving for a user.

◆ giftSettings() [2/2]

giftSettings ( bool  show_gift_button_,
object_ptr< acceptedGiftTypes > &&  accepted_gift_types_ 
)

Contains settings for gift receiving for a user.

Parameters
[in]show_gift_button_True, if a button for sending a gift to the user or by the user must always be shown in the input field.
[in]accepted_gift_types_Types of gifts accepted by the user; for Telegram Premium users only.

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: