Skip to content

GramIO API Reference / gramio/dist / TelegramUniqueGiftInfo

Interface: TelegramUniqueGiftInfo

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

Describes a service message about a unique gift that was sent or received.

Documentation

Properties

PropertyTypeDescriptionDefined in
giftTelegramUniqueGiftInformation about the gift@gramio/types/out/objects.d.ts:4884
last_resale_amount?numberOptional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins@gramio/types/out/objects.d.ts:4896
last_resale_currency?TelegramUniqueGiftInfoLastResaleCurrencyOptional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.@gramio/types/out/objects.d.ts:4892
next_transfer_date?numberOptional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now@gramio/types/out/objects.d.ts:4908
originTelegramUniqueGiftInfoOriginOrigin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers@gramio/types/out/objects.d.ts:4888
owned_gift_id?stringOptional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts@gramio/types/out/objects.d.ts:4900
transfer_star_count?numberOptional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift@gramio/types/out/objects.d.ts:4904