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

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

Contains info about an ongoing giveaway.

Constructors

new
payments_GiveawayInfo_(params: { participating?: true; preparing_results?: true; start_date: number; joined_too_early_date?: number; admin_disallowed_chat_id?: bigint; disallowed_country?: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
admin_disallowed_chat_id: bigint

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.

optional
disallowed_country: string

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

optional
joined_too_early_date: number

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

optional
participating: true

The current user is participating in the giveaway.

optional
preparing_results: true

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

start_date: number

When was the giveaway started

Static Properties

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