mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-12-22 22:26:01 +00:00
fixes of build
This commit is contained in:
@@ -20,7 +20,7 @@ sealed interface GiveawayPublicResults: GiveawayInfo, GiveawayResults, WithPrevi
|
||||
val publicWinners: Boolean
|
||||
val refunded: Boolean
|
||||
|
||||
@Serializable(GiveawayPublicResults.Companion::class)
|
||||
@Serializable
|
||||
data class Refunded(
|
||||
@SerialName(chatsField)
|
||||
override val chat: PreviewChat,
|
||||
@@ -50,7 +50,7 @@ sealed interface GiveawayPublicResults: GiveawayInfo, GiveawayResults, WithPrevi
|
||||
override val premiumMonths: Int? = null
|
||||
}
|
||||
|
||||
@Serializable(GiveawayPublicResults.Companion::class)
|
||||
@Serializable
|
||||
data class Winners (
|
||||
@SerialName(chatsField)
|
||||
override val chat: PreviewChat,
|
||||
@@ -157,6 +157,5 @@ sealed interface GiveawayPublicResults: GiveawayInfo, GiveawayResults, WithPrevi
|
||||
|
||||
Surrogate.serializer().serialize(encoder, surrogate)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,7 @@ internal data class RawUpdate constructor(
|
||||
private val chat_boost: ChatBoostUpdated? = null,
|
||||
private val removed_chat_boost: ChatBoostRemoved? = null
|
||||
) {
|
||||
@Transient
|
||||
private var initedUpdate: Update? = null
|
||||
/**
|
||||
* @return One of children of [Update] interface or null in case of unknown type of update
|
||||
|
||||
Reference in New Issue
Block a user