docs
Toggle table of contents
35.1.0
common
Target filter
common
Switch theme
Search in API
Skip to content
docs
docs
/
dev.inmo.tgbotapi.types.gifts
/
OwnedGift
/
Unique
Unique
@
Serializable
(
with
=
OwnedGift.Unique.Companion::class
)
sealed
interface
Unique
:
OwnedGift
(
source
)
Inheritors
Common
OwnedByBusinessAccount
Members
Types
Common
Link copied to clipboard
@
Serializable
data
class
Common
(
val
gift
:
Gift.Unique
,
val
sendDate
:
TelegramDate
,
val
senderUser
:
PreviewUser
?
=
null
,
val
isSaved
:
Boolean
=
false
,
val
canBeTransferred
:
Boolean
=
false
,
val
transferStarCount
:
Int
?
=
null
,
val
nextTransferDate
:
TelegramDate
?
=
null
)
:
OwnedGift.Unique
,
OwnedGift.Common
Companion
Link copied to clipboard
object
Companion
:
KSerializer
<
OwnedGift.Unique
>
Owned
By
Business
Account
Link copied to clipboard
@
Serializable
data
class
OwnedByBusinessAccount
(
val
gift
:
Gift.Unique
,
val
sendDate
:
TelegramDate
,
val
ownedGiftId
:
GiftId
,
val
senderUser
:
PreviewUser
?
=
null
,
val
isSaved
:
Boolean
=
false
,
val
canBeTransferred
:
Boolean
=
false
,
val
transferStarCount
:
Int
?
=
null
,
val
nextTransferDate
:
TelegramDate
?
=
null
)
:
OwnedGift.Unique
,
OwnedGift.OwnedByBusinessAccount
Properties
can
Be
Transferred
Link copied to clipboard
abstract
val
canBeTransferred
:
Boolean
gift
Link copied to clipboard
abstract
override
val
gift
:
Gift.Unique
is
Saved
Link copied to clipboard
abstract
val
isSaved
:
Boolean
next
Transfer
Date
Link copied to clipboard
abstract
val
nextTransferDate
:
TelegramDate
?
owned
Gift
Id
Link copied to clipboard
abstract
val
ownedGiftId
:
GiftId
?
send
Date
Link copied to clipboard
abstract
val
sendDate
:
TelegramDate
sender
User
Link copied to clipboard
abstract
val
senderUser
:
PreviewUser
?
transfer
Star
Count
Link copied to clipboard
abstract
val
transferStarCount
:
Int
?