Skip to content

GramIO API Reference / gramio/dist / TelegramGift

Interface: TelegramGift

Defined in: @gramio/types/out/objects.d.ts:4570

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

Documentation

Properties

PropertyTypeDescriptionDefined in
background?TelegramGiftBackgroundOptional. Background of the gift@gramio/types/out/objects.d.ts:4614
has_colors?trueOptional. True, if the gift can be used (after being upgraded) to customize a user's appearance@gramio/types/out/objects.d.ts:4594
idstringUnique identifier of the gift@gramio/types/out/objects.d.ts:4574
is_premium?trueOptional. True, if the gift can only be purchased by Telegram Premium subscribers@gramio/types/out/objects.d.ts:4590
personal_remaining_count?numberOptional. The number of remaining gifts of this type that can be sent by the bot; for limited gifts only@gramio/types/out/objects.d.ts:4610
personal_total_count?numberOptional. The total number of gifts of this type that can be sent by the bot; for limited gifts only@gramio/types/out/objects.d.ts:4606
publisher_chat?TelegramChatOptional. Information about the chat that published the gift@gramio/types/out/objects.d.ts:4622
remaining_count?numberOptional. The number of remaining gifts of this type that can be sent by all users; for limited gifts only@gramio/types/out/objects.d.ts:4602
star_countnumberThe number of Telegram Stars that must be paid to send the sticker@gramio/types/out/objects.d.ts:4582
stickerTelegramStickerThe sticker that represents the gift@gramio/types/out/objects.d.ts:4578
total_count?numberOptional. The total number of gifts of this type that can be sent by all users; for limited gifts only@gramio/types/out/objects.d.ts:4598
unique_gift_variant_count?numberOptional. The total number of different unique gifts that can be obtained by upgrading the gift@gramio/types/out/objects.d.ts:4618
upgrade_star_count?numberOptional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one@gramio/types/out/objects.d.ts:4586