MadelineProtoDocs/docs/API_docs/constructors/prepaidGiveaway.md
2024-05-01 14:53:46 +02:00

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

Back to constructors index

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];