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::telegramPaymentPurposePremiumGiftCodes Class Referencefinal

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

Inheritance diagram for td::td_api::telegramPaymentPurposePremiumGiftCodes:
td::td_api::TelegramPaymentPurpose td::td_api::Object td::TlObject

Public Member Functions

 telegramPaymentPurposePremiumGiftCodes ()
 
 telegramPaymentPurposePremiumGiftCodes (int53 boosted_chat_id_, string const &currency_, int53 amount_, array< int53 > &&user_ids_, int32 month_count_, object_ptr< formattedText > &&text_)
 
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

int53 boosted_chat_id_
 Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user.
 
string currency_
 ISO 4217 currency code of the payment currency.
 
int53 amount_
 Paid amount, in the smallest units of the currency.
 
array< int53user_ids_
 Identifiers of the users which can activate the gift codes.
 
int32 month_count_
 Number of months the Telegram Premium subscription will be active for the users.
 
object_ptr< formattedTexttext_
 Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed.
 

Static Public Attributes

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

Detailed Description

The user boosting a chat by creating Telegram Premium gift codes for other users.

Definition at line 72258 of file td_api.h.

Constructor & Destructor Documentation

◆ telegramPaymentPurposePremiumGiftCodes() [1/2]

td::td_api::telegramPaymentPurposePremiumGiftCodes::telegramPaymentPurposePremiumGiftCodes ( )

The user boosting a chat by creating Telegram Premium gift codes for other users.

◆ telegramPaymentPurposePremiumGiftCodes() [2/2]

td::td_api::telegramPaymentPurposePremiumGiftCodes::telegramPaymentPurposePremiumGiftCodes ( int53  boosted_chat_id_,
string const &  currency_,
int53  amount_,
array< int53 > &&  user_ids_,
int32  month_count_,
object_ptr< formattedText > &&  text_ 
)

The user boosting a chat by creating Telegram Premium gift codes for other users.

Parameters
[in]boosted_chat_id_Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user.
[in]currency_ISO 4217 currency code of the payment currency.
[in]amount_Paid amount, in the smallest units of the currency.
[in]user_ids_Identifiers of the users which can activate the gift codes.
[in]month_count_Number of months the Telegram Premium subscription will be active for the users.
[in]text_Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed.

Member Function Documentation

◆ store()

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

◆ amount_

int53 td::td_api::telegramPaymentPurposePremiumGiftCodes::amount_

Paid amount, in the smallest units of the currency.

Definition at line 72273 of file td_api.h.

◆ boosted_chat_id_

int53 td::td_api::telegramPaymentPurposePremiumGiftCodes::boosted_chat_id_

Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user.

Definition at line 72269 of file td_api.h.

◆ currency_

string td::td_api::telegramPaymentPurposePremiumGiftCodes::currency_

ISO 4217 currency code of the payment currency.

Definition at line 72271 of file td_api.h.

◆ ID

const std::int32_t td::td_api::telegramPaymentPurposePremiumGiftCodes::ID = -1863495348
static

Identifier uniquely determining a type of the object.

Definition at line 72299 of file td_api.h.

◆ month_count_

int32 td::td_api::telegramPaymentPurposePremiumGiftCodes::month_count_

Number of months the Telegram Premium subscription will be active for the users.

Definition at line 72277 of file td_api.h.

◆ text_

object_ptr<formattedText> td::td_api::telegramPaymentPurposePremiumGiftCodes::text_

Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed.

Definition at line 72279 of file td_api.h.

◆ user_ids_

array<int53> td::td_api::telegramPaymentPurposePremiumGiftCodes::user_ids_

Identifiers of the users which can activate the gift codes.

Definition at line 72275 of file td_api.h.


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