telegram api method · layer 229 · #4fdc5ea7
payments.canPurchaseStore
Checks whether a purchase is possible. Must be called before in-store purchase, official apps only.
definition
payments.canPurchaseStore#4fdc5ea7 purpose:InputStorePaymentPurpose = Bool;
parameters
| name | type | description |
|---|---|---|
purpose | InputStorePaymentPurpose | Payment purpose. |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | INPUT_PURPOSE_INVALID | The specified payment purpose is invalid. |
| 406 | PREMIUM_CURRENTLY_UNAVAILABLE | You cannot currently purchase a Premium subscription. |
history
present in layers 201–229
| id | layers |
|---|---|
| #4fdc5ea7 | 201–229 |