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
| name | type | description |
|---|---|---|
purpose | InputStorePaymentPurpose |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | USER_GIFT_UNAVAILABLE | Gifts are not available in the current region (stars_gifts_enabled is equal to false). |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |
| 406 | PREMIUM_CURRENTLY_UNAVAILABLE | You cannot currently purchase a Premium subscription. |
history
present in layers 143–200 · constructor id changed 1×
| id | layers |
|---|---|
| #aa6a90c8 | 143 |
| #9fc19eb6 | 144–200 |