can_purchase_store()

async Client.can_purchase_store()

Check if an in-app store purchase can be made for the given purpose.

Usable by Users Bots
Parameters:

purpose (InputStorePaymentPurpose) – The payment purpose.

Returns:

bool – True if store purchase is allowed, False otherwise.

Example

can_buy = await app.can_purchase_store(purpose)