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

Inherits Object.

Description

Contains settings for gift receiving for a user.

Public Fields

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.
 
object_ptr< acceptedGiftTypesaccepted_gift_types_
 Types of gifts accepted by the user; for Telegram Premium users only.
 

Public Instance Methods

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

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: