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

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

Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel or to some of our contacts, see here » for more info on giveaways and gifts.

Constructors

new
InputStorePaymentPremiumGiftCode_(params: { users: Array<enums.InputUser>; boost_peer?: enums.InputPeer; 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).

optional
boost_peer: enums.InputPeer

If set, the gifts will be sent on behalf of a channel we are an admin of, which will also assign some boosts to it. Otherwise, the gift will be sent directly from the currently logged in users, and we will gain some extra boost slots. See here » for more info on giveaways and gifts.

currency: string

Three-letter ISO 4217 currency code

users: Array<enums.InputUser>

The users that will receive the Telegram Premium subscriptions.

Static Properties

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