Gift

@Serializable(with = Gift.Companion::class)
sealed interface Gift

Inheritors

Types

Link copied to clipboard
object Companion : KSerializer<Gift>
Link copied to clipboard
@Serializable(with = Gift.Regular.Companion::class)
sealed interface Regular : Gift
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

Link copied to clipboard
abstract val id: GiftId?
Link copied to clipboard
abstract val isPremium: Boolean
Link copied to clipboard
abstract val publisherChat: PreviewChat?