TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
authorizationStateWaitPremiumPurchase Class Referencefinal

Inherits AuthorizationState.

Description

The user must buy Telegram Premium as an in-store purchase to log in. Call checkAuthenticationPremiumPurchase and then setAuthenticationPremiumPurchaseTransaction.

Public Member Functions

 authorizationStateWaitPremiumPurchase ()
 
 authorizationStateWaitPremiumPurchase (string const &store_product_id_, int32 premium_day_count_, string const &support_email_address_, string const &support_email_subject_)
 
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 premium_day_count_
 Duration of the Telegram Premium subscription after the purchase; may be 0 if Telegram Premium subscription will not be granted.
 
string store_product_id_
 Identifier of the store product that must be bought.
 
string support_email_address_
 Email address to use for support if the user has issues with Telegram Premium purchase.
 
string support_email_subject_
 Subject for the email sent to the support email address.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ authorizationStateWaitPremiumPurchase() [1/2]

The user must buy Telegram Premium as an in-store purchase to log in. Call checkAuthenticationPremiumPurchase and then setAuthenticationPremiumPurchaseTransaction.

◆ authorizationStateWaitPremiumPurchase() [2/2]

authorizationStateWaitPremiumPurchase ( string const &  store_product_id_,
int32  premium_day_count_,
string const &  support_email_address_,
string const &  support_email_subject_ 
)

The user must buy Telegram Premium as an in-store purchase to log in. Call checkAuthenticationPremiumPurchase and then setAuthenticationPremiumPurchaseTransaction.

Parameters
[in]store_product_id_Identifier of the store product that must be bought.
[in]premium_day_count_Duration of the Telegram Premium subscription after the purchase; may be 0 if Telegram Premium subscription will not be granted.
[in]support_email_address_Email address to use for support if the user has issues with Telegram Premium purchase.
[in]support_email_subject_Subject for the email sent to the support email address.

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: