telegram api method · layer 229 · #4fdc5ea7

payments.canPurchaseStore

usable by users

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

definition

payments.canPurchaseStore#4fdc5ea7 purpose:InputStorePaymentPurpose = Bool;

parameters

nametypedescription
purposeInputStorePaymentPurposePayment purpose.

returns

Bool

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
400INPUT_PURPOSE_INVALIDThe specified payment purpose is invalid.
406PREMIUM_CURRENTLY_UNAVAILABLEYou cannot currently purchase a Premium subscription.

history

present in layers 201–229

idlayers
#4fdc5ea7201–229