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

2.6 KiB

title description nav_exclude image
messageMediaGiveawayResults A giveaway with public winners has finished, this constructor contains info about the winners. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageMediaGiveawayResults

Back to constructors index

A giveaway with public winners has finished, this constructor contains info about the winners.

Attributes:

Name Type Required Description
only_new_subscribers Bool Optional If set, only new subscribers starting from the giveaway creation date participated in the giveaway.
refunded Bool Optional If set, the giveaway was canceled and was fully refunded.
channel_id long Yes ID of the channel that was automatically boosted by the winners of the giveaway for duration of the Premium subscription.
additional_peers_count int Optional Number of other channels that participated in the giveaway.
launch_msg_id int Yes Identifier of the message with the giveaway in channel_id.
winners_count int Yes Total number of winners in the giveaway.
unclaimed_count int Yes Number of not-yet-claimed prizes.
winners Array of long Yes Up to 100 user identifiers of the winners of the giveaway.
months int Yes Duration in months of each Telegram Premium subscription in the giveaway.
prize_description string Optional Can contain a textual description of additional giveaway prizes.
until_date int Yes Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in initial parameters of the giveaway.

Type: MessageMedia

Example:

$messageMediaGiveawayResults = ['_' => 'messageMediaGiveawayResults', 'only_new_subscribers' => Bool, 'refunded' => Bool, 'channel_id' => long, 'additional_peers_count' => int, 'launch_msg_id' => int, 'winners_count' => int, 'unclaimed_count' => int, 'winners' => [long, long], 'months' => int, 'prize_description' => 'string', 'until_date' => int];