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>MessageMediaGiveaway_

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

Contains info about a giveaway, see here » for more info.

Constructors

new
MessageMediaGiveaway_(params: { only_new_subscribers?: true; winners_are_visible?: true; channels: Array<bigint>; countries_iso2?: Array<string>; prize_description?: string; quantity: number; months: number; until_date: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
channels: Array<bigint>

The channels that the user must join to participate in the giveaway.

optional
countries_iso2: Array<string>

If set, only users residing in these countries can participate in the giveaway, (specified as a list of two-letter ISO 3166-1 alpha-2 country codes); otherwise there are no country-based limitations.

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 will be able to participate to the giveaway.

optional
prize_description: string

Can contain a textual description of additional giveaway prizes.

quantity: number

Number of Telegram Premium subscriptions given away.

until_date: number

The end date of the giveaway.

optional
winners_are_visible: true

If set, giveaway winners are public and will be listed in a messageMediaGiveawayResults message that will be automatically sent to the channel once the giveaway ends.

Static Properties

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