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>.
Public Fields | |
string | currency_ |
ISO 4217 currency code of the payment currency. | |
int53 | amount_ |
Paid amount, in the smallest units of the currency. | |
Public Types | |
using | ReturnType = object_ptr< ok > |
Typedef for the type returned by the function. | |
Public Instance Methods | |
checkAuthenticationPremiumPurchase () | |
checkAuthenticationPremiumPurchase (string const ¤cy_, int53 amount_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = 1588959934 |
Identifier uniquely determining a type of the object. | |
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 | ( | string const & | currency_, |
int53 | amount_ | ||
) |
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>.
[in] | currency_ | ISO 4217 currency code of the payment currency. |
[in] | amount_ | Paid amount, in the smallest units of the currency. |
|
finalvirtual |