GramIO API Reference / gramio/dist / TelegramUniqueGiftInfo
Interface: TelegramUniqueGiftInfo
Defined in: @gramio/types/out/objects.d.ts:5454
Describes a service message about a unique gift that was sent or received.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
entities? | TelegramMessageEntity[] | Optional. Special entities that appear in the text | @gramio/types/out/objects.d.ts:5470 |
gift | TelegramUniqueGift | Information about the gift | @gramio/types/out/objects.d.ts:5458 |
is_private? | true | Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them | @gramio/types/out/objects.d.ts:5474 |
last_resale_amount? | number | Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanograms | @gramio/types/out/objects.d.ts:5482 |
last_resale_currency? | TelegramUniqueGiftInfoLastResaleCurrency | Optional. 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 TON grams. | @gramio/types/out/objects.d.ts:5478 |
next_transfer_date? | number | Optional. 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:5494 |
origin | TelegramUniqueGiftInfoOrigin | Origin 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:5462 |
owned_gift_id? | string | Optional. 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:5486 |
text? | string | Optional. Text of the message that was added to the gift | @gramio/types/out/objects.d.ts:5466 |
transfer_star_count? | number | Optional. 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:5490 |