Raw.MessageMediaGiveawayResults

Raw.MessageMediaGiveawayResults

A giveaway with public winners has finished, this constructor contains info about the winners.

messageMediaGiveawayResults#ceaa3ea1 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:flags.4?int stars:flags.5?long 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;
      stars?: bigint;
      prizeDescription?: string;
      untilDate: number;
    }) {}
  }
}
🚫

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

Layer: 198
Constructor ID: 0xceaa3ea1

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 or undefined

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

  • stars : bigint or undefined

    For telegram star giveaways, the total number of telegram stars being given away.

  • 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.