telegramx.js

Gift

interface

This object represents a gift that can be sent by the bot.

Declaration

interface Gift 

Properties

backgroundproperty#
background?: GiftBackground;

Optional. Background of the gift

has_colorsproperty#
has_colors?: boolean;

Optional. True, if the gift can be used (after being upgraded) to customize a user's appearance

idproperty#
id: string;

Unique identifier of the gift

is_premiumproperty#
is_premium?: boolean;

Optional. True, if the gift can only be purchased by Telegram Premium subscribers

personal_remaining_count?: number;

Optional. The number of remaining gifts of this type that can be sent by the bot; for limited gifts only

personal_total_count?: number;

Optional. The total number of gifts of this type that can be sent by the bot; for limited gifts only

publisher_chat?: Chat;

Optional. Information about the chat that published the gift

remaining_count?: number;

Optional. The number of remaining gifts of this type that can be sent by all users; for limited gifts only

star_countproperty#
star_count: number;

The number of Telegram Stars that must be paid to send the sticker

stickerproperty#
sticker: Sticker;

The sticker that represents the gift

total_countproperty#
total_count?: number;

Optional. The total number of gifts of this type that can be sent by all users; for limited gifts only

unique_gift_variant_count?: number;

Optional. The total number of different unique gifts that can be obtained by upgrading the gift

upgrade_star_count?: number;

Optional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one