OwnedGiftUnique
Describes a unique gift received and owned by a user or a chat.
fields
| field | type | required | description |
|---|---|---|---|
type | string | required | Type of the gift, always “unique” |
gift | UniqueGift | required | Information about the unique gift |
owned_gift_id | string | optional | Optional. Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only |
sender_user | User | optional | Optional. Sender of the gift if it is a known user |
send_date | number | required | Date the gift was sent in Unix time |
is_saved | boolean | optional | Optional. True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only |
can_be_transferred | boolean | optional | Optional. True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only |
transfer_star_count | number | optional | Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift |
next_transfer_date | number | optional | 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. |
import
import type { OwnedGiftUnique } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#ownedgiftunique