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_CheckedGiftCode_

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

Contains info about a Telegram Premium giftcode link.

Constructors

new
payments_CheckedGiftCode_(params: { via_giveaway?: true; from_id?: enums.Peer; giveaway_msg_id?: number; to_id?: bigint; date: number; months: number; used_date?: number; chats: Array<enums.Chat>; users: Array<enums.User>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
chats: Array<enums.Chat>

Mentioned chats

date: number

Creation date of the gift code.

optional
from_id: enums.Peer

The peer that created the gift code.

optional
giveaway_msg_id: number

Message ID of the giveaway in the channel specified in from_id.

months: number

Duration in months of the gifted Telegram Premium subscription.

optional
to_id: bigint

The destination user of the gift.

optional
used_date: number

When was the giftcode imported, if it was imported.

users: Array<enums.User>

Mentioned users

optional
via_giveaway: true

Whether this giftcode was created by a giveaway.

Static Properties

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