Raw.MessageMediaGiveawayResults

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 undefined

    If set, only new subscribers starting from the giveaway creation date participated in the giveaway.

  • refunded : boolean or undefined

    If set, the giveaway was canceled and was fully refunded.

  • channelId : bigint

    Id of the channel/supergroup that was automatically boosted by the winners of the giveaway for duration of the premium subscription.

  • additionalPeersCount : number or undefined

    Number of other channels that participated in the giveaway.

  • launchMsgId : number

    Identifier of the message with the giveaway in channelId.

  • winnersCount : number

    Total number of winners in the giveaway.

  • unclaimedCount : number

    Number of not-yet-claimed prizes.

  • winners : Array of bigint

    Up to 100 user identifiers of the winners of the giveaway.

  • months : number

    Duration in months of each telegram premium subscription in the giveaway.

  • prizeDescription : string or undefined

    Can contain a textual description of additional giveaway prizes.

  • untilDate : number

    Point in time (unix timestamp) when the winners were selected. may be bigger than winners selection date specified in initial parameters of the giveaway.