Available types

OwnedGiftUnique

Describes a unique gift received and owned by a user or a chat.

fields

fieldtyperequireddescription
typestringrequiredType of the gift, always “unique”
giftUniqueGiftrequiredInformation about the unique gift
owned_gift_idstringoptionalOptional. Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only
sender_userUseroptionalOptional. Sender of the gift if it is a known user
send_datenumberrequiredDate the gift was sent in Unix time
is_savedbooleanoptionalOptional. True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only
can_be_transferredbooleanoptionalOptional. True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only
transfer_star_countnumberoptionalOptional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift
next_transfer_datenumberoptionalOptional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.

import

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

used by

types