Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>MessageMediaGiveawayResults_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class MessageMediaGiveawayResults_
import { MessageMediaGiveawayResults_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

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

Constructors

new
MessageMediaGiveawayResults_(params: { only_new_subscribers?: true; refunded?: true; channel_id: bigint; additional_peers_count?: number; launch_msg_id: number; winners_count: number; unclaimed_count: number; winners: Array<bigint>; months: number; prize_description?: string; until_date: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
additional_peers_count: number

Number of other channels that participated in the giveaway.

channel_id: bigint

ID of the channel that was automatically boosted by the winners of the giveaway for duration of the Premium subscription.

launch_msg_id: number

Identifier of the message with the giveaway in channel_id.

months: number

Duration in months of each Telegram Premium subscription in the giveaway.

optional
only_new_subscribers: true

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

optional
prize_description: string

Can contain a textual description of additional giveaway prizes.

optional
refunded: true

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

unclaimed_count: number

Number of not-yet-claimed prizes.

until_date: 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.

winners: Array<bigint>

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

winners_count: number

Total number of winners in the giveaway.

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc