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

Inherits StarTransactionType.

Description

The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only.

Public Member Functions

 starTransactionTypePremiumPurchase ()
 starTransactionTypePremiumPurchase (int53 user_id_, int32 month_count_, object_ptr< sticker > &&sticker_)
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

int32 month_count_
 Number of months the Telegram Premium subscription will be active.
object_ptr< sticker > sticker_
 A sticker to be shown in the transaction information; may be null if unknown.
int53 user_id_
 Identifier of the user who received the Telegram Premium subscription.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ starTransactionTypePremiumPurchase() [1/2]

starTransactionTypePremiumPurchase ( )

The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only.

◆ starTransactionTypePremiumPurchase() [2/2]

starTransactionTypePremiumPurchase ( int53 user_id_,
int32 month_count_,
object_ptr< sticker > && sticker_ )

The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only.

Parameters
[in]user_id_Identifier of the user who received the Telegram Premium subscription.
[in]month_count_Number of months the Telegram Premium subscription will be active.
[in]sticker_A sticker to be shown in the transaction information; may be null if unknown.

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: