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

1.9 KiB

title description nav_exclude image redirect_from
payments.giveawayInfoResults A giveaway has ended. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/payments_giveawayInfoResults.html

Constructor: payments.giveawayInfoResults

Back to constructors index

A giveaway has ended.

Attributes:

Name Type Required Description
winner Bool Optional Whether we're one of the winners of this giveaway.
refunded Bool Optional Whether the giveaway was canceled and was fully refunded.
start_date int Yes Start date of the giveaway
gift_code_slug string Optional If we're one of the winners of this giveaway, contains the Premium gift code, see here » for more info on the full giveaway flow.
finish_date int Yes End date of the giveaway. May be bigger than the end date specified in parameters of the giveaway.
winners_count int Yes Number of winners in the giveaway
activated_count int Yes Number of winners, which activated their gift codes.

Type: payments.GiveawayInfo

Example:

$payments_giveawayInfoResults = ['_' => 'payments.giveawayInfoResults', 'winner' => Bool, 'refunded' => Bool, 'start_date' => int, 'gift_code_slug' => 'string', 'finish_date' => int, 'winners_count' => int, 'activated_count' => int];