TDLib
Loading...
Searching...
No Matches
acceptedGiftTypes Class Referencefinal

Inherits Object.

Description

Describes gift types that are accepted by a user.

Public Member Functions

 acceptedGiftTypes ()
 acceptedGiftTypes (bool unlimited_gifts_, bool limited_gifts_, bool upgraded_gifts_, bool gifts_from_channels_, bool premium_subscription_)
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

bool gifts_from_channels_
 True, if gifts from channels are accepted subject to other restrictions.
bool limited_gifts_
 True, if limited regular gifts are accepted.
bool premium_subscription_
 True, if Telegram Premium subscription is accepted.
bool unlimited_gifts_
 True, if unlimited regular gifts are accepted.
bool upgraded_gifts_
 True, if upgraded gifts and regular gifts that can be upgraded for free are accepted.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ acceptedGiftTypes() [1/2]

acceptedGiftTypes ( )

Describes gift types that are accepted by a user.

◆ acceptedGiftTypes() [2/2]

acceptedGiftTypes ( bool unlimited_gifts_,
bool limited_gifts_,
bool upgraded_gifts_,
bool gifts_from_channels_,
bool premium_subscription_ )

Describes gift types that are accepted by a user.

Parameters
[in]unlimited_gifts_True, if unlimited regular gifts are accepted.
[in]limited_gifts_True, if limited regular gifts are accepted.
[in]upgraded_gifts_True, if upgraded gifts and regular gifts that can be upgraded for free are accepted.
[in]gifts_from_channels_True, if gifts from channels are accepted subject to other restrictions.
[in]premium_subscription_True, if Telegram Premium subscription is accepted.

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: