payments.canPurchasePremium

Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only.

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
payments.canPurchasePremium#aa6a90c8 = Bool;

Parameters

Name Type Description
purpose InputStorePaymentPurpose Payment purpose

Result

Bool

Possible errors

Code Type Description
406 PREMIUM_CURRENTLY_UNAVAILABLE You cannot currently purchase a Premium subscription.