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
Regular
Unique
Members
Types
Companion
Link copied to clipboard
object
Companion
:
KSerializer
<
Gift
>
Regular
Link copied to clipboard
@
Serializable
(
with
=
Gift.Regular.Companion::class
)
sealed
interface
Regular
:
Gift
Unique
Link copied to clipboard
@
Serializable
data
class
Unique
(
val
id
:
GiftId
?
=
null
,
val
baseName
:
String
,
val
name
:
UniqueGiftName
,
val
number
:
Int
,
val
model
:
UniqueGiftModel
,
val
symbol
:
UniqueGiftSymbol
,
val
backdrop
:
UniqueGiftBackdrop
,
val
isPremium
:
Boolean
=
false
,
val
isBurned
:
Boolean
=
false
,
val
isFromBlockchain
:
Boolean
=
false
,
val
colors
:
UniqueGiftColors
?
=
null
,
val
publisherChat
:
PreviewChat
?
=
null
)
:
Gift
Represents a
UniqueGift
from telegram bots api
Properties
id
Link copied to clipboard
abstract
val
id
:
GiftId
?
is
Premium
Link copied to clipboard
abstract
val
isPremium
:
Boolean
publisher
Chat
Link copied to clipboard
abstract
val
publisherChat
:
PreviewChat
?