Raw.MessageMediaGiveawayResults
A giveaway with public winners has finished, this constructor contains info about the winners.
messageMediaGiveawayResults#c6991068 flags:# only_new_subscribers:flags.0?true refunded:flags.2?true channel_id:long additional_peers_count:flags.3?int launch_msg_id:int winners_count:int unclaimed_count:int winners:Vector<long> months:int prize_description:flags.1?string until_date:int = MessageMedia;
export namespace Raw {
export class MessageMediaGiveawayResults {
constructor(params: {
onlyNewSubscribers?: boolean;
refunded?: boolean;
channelId: bigint;
additionalPeersCount?: number;
launchMsgId: number;
winnersCount: number;
unclaimedCount: number;
winners: Array<bigint>;
months: number;
prizeDescription?: string;
untilDate: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xc6991068
Property
onlyNewSubscribers
: boolean or undefinedIf set, only new subscribers starting from the giveaway creation date participated in the giveaway.
refunded
: boolean or undefinedIf set, the giveaway was canceled and was fully refunded.
channelId
: bigintId of the channel/supergroup that was automatically boosted by the winners of the giveaway for duration of the premium subscription.
additionalPeersCount
: number or undefinedNumber of other channels that participated in the giveaway.
launchMsgId
: numberIdentifier of the message with the giveaway in channelId.
winnersCount
: numberTotal number of winners in the giveaway.
unclaimedCount
: numberNumber of not-yet-claimed prizes.
winners
: Array of bigintUp to 100 user identifiers of the winners of the giveaway.
months
: numberDuration in months of each telegram premium subscription in the giveaway.
prizeDescription
: string or undefinedCan contain a textual description of additional giveaway prizes.
untilDate
: numberPoint in time (unix timestamp) when the winners were selected. may be bigger than winners selection date specified in initial parameters of the giveaway.