Raw.payments.GiveawayInfo

Raw.payments.GiveawayInfo

Contains info about an ongoing giveaway.

payments.giveawayInfo#4367daa0 flags:# participating:flags.0?true preparing_results:flags.3?true start_date:int joined_too_early_date:flags.1?int admin_disallowed_chat_id:flags.2?long disallowed_country:flags.4?string = payments.GiveawayInfo;
export namespace Raw {
  export namespace payments {
    export class GiveawayInfo {
      constructor(params: {
        participating?: boolean;
        preparingResults?: boolean;
        startDate: number;
        joinedTooEarlyDate?: number;
        adminDisallowedChatId?: bigint;
        disallowedCountry?: string;
      }) {}
    }
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x4367daa0

Property

  • participating : boolean or undefined

    The current user is participating in the giveaway.

  • preparingResults : boolean or undefined

    If set, the giveaway has ended and the results are being prepared.

  • startDate : number

    When was the giveaway started

  • joinedTooEarlyDate : number or undefined

    The current user can’t participate in the giveaway, because they were already a member of the channel when the giveaway started, and the onlyNewSubscribers was set when starting the giveaway.

  • adminDisallowedChatId : bigint or undefined

    If set, the current user can’t participate in the giveaway, because they are an administrator in one of the channels (id specified in this flag) that created the giveaway.

  • disallowedCountry : string or undefined

    If set, the current user can’t participate in this giveaway, because their phone number is from the specified disallowed country (specified as a two-letter iso 3166-1 alpha-2 country code).