Raw.payments.GiveawayInfoResults

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 undefined

    Whether we’re one of the winners of this giveaway.

  • refunded : boolean or undefined

    Whether the giveaway was canceled and was fully refunded.

  • startDate : number

    Start date of the giveaway

  • giftCodeSlug : string or undefined

    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.

  • starsPrize : bigint or undefined

    If we’re one of the winners of this telegram star giveaway, the number telegram stars we won.

  • finishDate : number

    End date of the giveaway. may be bigger than the end date specified in parameters of the giveaway.

  • winnersCount : number

    Number of winners in the giveaway

  • activatedCount : number or undefined

    Number of winners, which activated their gift codes.