mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2025-01-22 05:41:46 +01:00
31 lines
1.0 KiB
Markdown
31 lines
1.0 KiB
Markdown
|
---
|
||
|
title: "inputStorePaymentPremiumSubscription"
|
||
|
description: "Info about a Telegram Premium purchase"
|
||
|
nav_exclude: true
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
---
|
||
|
# Constructor: inputStorePaymentPremiumSubscription
|
||
|
[Back to constructors index](/API_docs/constructors/index.html)
|
||
|
|
||
|
|
||
|
|
||
|
Info about a Telegram Premium purchase
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|restore|[Bool](/API_docs/types/Bool.html) | Optional|Pass true if this is a restore of a Telegram Premium purchase; only for the App Store|
|
||
|
|upgrade|[Bool](/API_docs/types/Bool.html) | Optional|Pass true if this is an upgrade from a monthly subscription to a yearly subscription; only for App Store|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [InputStorePaymentPurpose](/API_docs/types/InputStorePaymentPurpose.html)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$inputStorePaymentPremiumSubscription = ['_' => 'inputStorePaymentPremiumSubscription', 'restore' => Bool, 'upgrade' => Bool];
|
||
|
```
|