Raw.payments.GiveawayInfoResults
A giveaway has ended.
payments.giveawayInfoResults#e175e66f flags:# winner:flags.0?true refunded:flags.1?true start_date:int gift_code_slug:flags.3?string stars_prize:flags.4?long finish_date:int winners_count:int activated_count:flags.2?int = payments.GiveawayInfo;
export namespace Raw {
export namespace payments {
export class GiveawayInfoResults {
constructor(params: {
winner?: boolean;
refunded?: boolean;
startDate: number;
giftCodeSlug?: string;
starsPrize?: bigint;
finishDate: number;
winnersCount: number;
activatedCount?: number;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 198
Constructor ID: 0xe175e66f
Property
winner
: boolean or undefinedWhether we’re one of the winners of this giveaway.
refunded
: boolean or undefinedWhether the giveaway was canceled and was fully refunded.
startDate
: numberStart date of the giveaway
giftCodeSlug
: string or undefinedIf we’re one of the winners of this giveaway, contains the premium gift code, see here for more info on the full giveaway flow.
starsPrize
: bigint or undefinedIf we’re one of the winners of this telegram star giveaway, the number telegram stars we won.
finishDate
: numberEnd date of the giveaway. may be bigger than the end date specified in parameters of the giveaway.
winnersCount
: numberNumber of winners in the giveaway
activatedCount
: number or undefinedNumber of winners, which activated their gift codes.