tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::giftSettings Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::giftSettings:
td::td_api::Object td::TlObject

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 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

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.
 

Static Public Attributes

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

Detailed Description

Contains settings for gift receiving for a user.

Definition at line 23841 of file td_api.h.

Constructor & Destructor Documentation

◆ giftSettings() [1/2]

td::td_api::giftSettings::giftSettings ( )

Contains settings for gift receiving for a user.

◆ giftSettings() [2/2]

td::td_api::giftSettings::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 td::td_api::giftSettings::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.

Member Data Documentation

◆ accepted_gift_types_

object_ptr<acceptedGiftTypes> td::td_api::giftSettings::accepted_gift_types_

Types of gifts accepted by the user; for Telegram Premium users only.

Definition at line 23854 of file td_api.h.

◆ ID

const std::int32_t td::td_api::giftSettings::ID = 45783168
static

Identifier uniquely determining a type of the object.

Definition at line 23870 of file td_api.h.

◆ show_gift_button_

bool td::td_api::giftSettings::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.

Definition at line 23852 of file td_api.h.


The documentation for this class was generated from the following file: