mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
33 lines
1.1 KiB
Markdown
33 lines
1.1 KiB
Markdown
|
---
|
||
|
title: "prepaidGiveaway"
|
||
|
description: "Contains info about a prepaid giveaway »."
|
||
|
nav_exclude: true
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
---
|
||
|
# Constructor: prepaidGiveaway
|
||
|
[Back to constructors index](/API_docs/constructors/index.html)
|
||
|
|
||
|
|
||
|
|
||
|
Contains info about a [prepaid giveaway »](https://core.telegram.org/api/giveaways).
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|id|[long](/API_docs/types/long.html) | Yes|Prepaid giveaway ID.|
|
||
|
|months|[int](/API_docs/types/int.html) | Yes|Duration in months of each gifted [Telegram Premium](https://core.telegram.org/api/premium) subscription.|
|
||
|
|quantity|[int](/API_docs/types/int.html) | Yes|Number of given away [Telegram Premium](https://core.telegram.org/api/premium) subscriptions.|
|
||
|
|date|[int](/API_docs/types/int.html) | Yes|Payment date.|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [PrepaidGiveaway](/API_docs/types/PrepaidGiveaway.html)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$prepaidGiveaway = ['_' => 'prepaidGiveaway', 'id' => long, 'months' => int, 'quantity' => int, 'date' => int];
|
||
|
```
|