ktgbotapi
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ktgbotapi
tgbotapi.core
/
dev.inmo.tgbotapi.types.gifts
/
Gift
Gift
@
Serializable
(
with
=
Gift.Companion::class
)
sealed
interface
Gift
Inheritors
Unlimited
Limited
Members
Types
Companion
Link copied to clipboard
object
Companion
:
KSerializer
<
Gift
>
Limited
Link copied to clipboard
@
Serializable
data
class
Limited
(
val
id
:
GiftId
,
val
sticker
:
Sticker
,
val
starCount
:
Int
,
val
totalCount
:
Int
,
val
remainingCount
:
Int
,
val
upgradeStarCount
:
Int
?
=
null
)
:
Gift
Unlimited
Link copied to clipboard
@
Serializable
data
class
Unlimited
(
val
id
:
GiftId
,
val
sticker
:
Sticker
,
val
starCount
:
Int
,
val
upgradeStarCount
:
Int
?
=
null
)
:
Gift
Properties
id
Link copied to clipboard
abstract
val
id
:
GiftId
remaining
Count
Link copied to clipboard
abstract
val
remainingCount
:
Int
?
star
Count
Link copied to clipboard
abstract
val
starCount
:
Int
sticker
Link copied to clipboard
abstract
val
sticker
:
Sticker
total
Count
Link copied to clipboard
abstract
val
totalCount
:
Int
?
upgrade
Star
Count
Link copied to clipboard
abstract
val
upgradeStarCount
:
Int
?