telegram api method · layer 200 · #9fc19eb6

payments.canPurchasePremium

not in the latest layer 229: last defined in layer 200

definition

payments.canPurchasePremium#9fc19eb6 purpose:InputStorePaymentPurpose = Bool;

parameters

nametypedescription
purposeInputStorePaymentPurpose

returns

Bool

errors (3)

codeerrordescription
400USER_GIFT_UNAVAILABLEGifts are not available in the current region (stars_gifts_enabled is equal to false).
400USER_ID_INVALIDThe provided user ID is invalid.
406PREMIUM_CURRENTLY_UNAVAILABLEYou cannot currently purchase a Premium subscription.

history

present in layers 143–200 · constructor id changed 1×

idlayers
#aa6a90c8143
#9fc19eb6144–200