Available types

Gift

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

fields

fieldtyperequireddescription
idstringrequiredUnique identifier of the gift
stickerStickerrequiredThe sticker that represents the gift
star_countnumberrequiredThe number of Telegram Stars that must be paid to send the sticker
upgrade_star_countnumberoptionalOptional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one
is_premiumbooleanoptionalOptional. True, if the gift can only be purchased by Telegram Premium subscribers
has_colorsbooleanoptionalOptional. True, if the gift can be used (after being upgraded) to customize a user's appearance
total_countnumberoptionalOptional. The total number of gifts of this type that can be sent by all users; for limited gifts only
remaining_countnumberoptionalOptional. The number of remaining gifts of this type that can be sent by all users; for limited gifts only
personal_total_countnumberoptionalOptional. The total number of gifts of this type that can be sent by the bot; for limited gifts only
personal_remaining_countnumberoptionalOptional. The number of remaining gifts of this type that can be sent by the bot; for limited gifts only
backgroundGiftBackgroundoptionalOptional. Background of the gift
unique_gift_variant_countnumberoptionalOptional. The total number of different unique gifts that can be obtained by upgrading the gift
publisher_chatChatoptionalOptional. Information about the chat that published the gift

import

types.ts
import type { Gift } from "@yaebal/types";

used by

types