Inherits Function.
Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.
Returns object_ptr<Ok>.
|
|
using | ReturnType = object_ptr< ok > |
| | Typedef for the type returned by the function.
|
| |
|
|
int53 | amount_ |
| | Paid amount, in the smallest units of the currency.
|
| |
|
string | currency_ |
| | ISO 4217 currency code of the payment currency.
|
| |
|
int32 | premium_day_count_ |
| | The number of days for which the Telegram Premium subscription will be granted.
|
| |
|
|
static const std::int32_t | ID = 876306570 |
| | Identifier uniquely determining a type of the object.
|
| |
◆ checkAuthenticationPremiumPurchase() [1/2]
Default constructor for a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.
Returns object_ptr<Ok>.
◆ checkAuthenticationPremiumPurchase() [2/2]
Creates a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.
Returns object_ptr<Ok>.
- Parameters
-
| [in] | premium_day_count_ | The number of days for which the Telegram Premium subscription will be granted. |
| [in] | currency_ | ISO 4217 currency code of the payment currency. |
| [in] | amount_ | Paid amount, in the smallest units of the currency. |
◆ 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] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements TlObject.
The documentation for this class was generated from the following file: