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

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

Contains info about a giveaway/gift option.

Constructors

new
PremiumGiftCodeOption_(params: { users: number; months: number; store_product?: string; store_quantity?: number; currency: string; amount: bigint; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
amount: bigint

Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

currency: string

Three-letter ISO 4217 currency code

months: number

Duration in months of each gifted Telegram Premium subscription.

optional
store_product: string

Identifier of the store product associated with the option, official apps only.

optional
store_quantity: number

Number of times the store product must be paid

users: number

Number of users which will be able to activate the gift codes.

Static Properties

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