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

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

Telegram Premium gift option

Constructors

new
PremiumGiftOption_(params: { months: number; currency: string; amount: bigint; bot_url: string; store_product?: string; })

Properties

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

Price of the product 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).

bot_url: string

An invoice deep link » to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn't available.

currency: string

Three-letter ISO 4217 currency code

months: number

Duration of gifted Telegram Premium subscription

optional
store_product: string

An identifier for the App Store/Play Store product associated with the Premium gift.

Static Properties

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