toggle menu
ktgbotapi
common
switch theme
search in API
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
)
:
Gift
Unlimited
Link copied to clipboard
@
Serializable
data
class
Unlimited
(
val
id
:
GiftId
,
val
sticker
:
Sticker
,
val
starCount
:
Int
)
:
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
?