mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.1 KiB
1.1 KiB
title | description | nav_exclude | image |
---|---|---|---|
prepaidGiveaway | Contains info about a prepaid giveaway ». | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: prepaidGiveaway
Contains info about a prepaid giveaway ».
Attributes:
Name | Type | Required | Description |
---|---|---|---|
id | long | Yes | Prepaid giveaway ID. |
months | int | Yes | Duration in months of each gifted Telegram Premium subscription. |
quantity | int | Yes | Number of given away Telegram Premium subscriptions. |
date | int | Yes | Payment date. |
Type: PrepaidGiveaway
Example:
$prepaidGiveaway = ['_' => 'prepaidGiveaway', 'id' => long, 'months' => int, 'quantity' => int, 'date' => int];