payments.CanPurchasePremium#

class pyrogram.raw.functions.payments.CanPurchasePremium#

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

Details:
  • Layer: 158

  • ID: 9FC19EB6

Parameters:

purpose (InputStorePaymentPurpose) – Payment purpose.

Returns:

bool