1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-11-16 20:10:18 +00:00

fixes in giveaways -.-

This commit is contained in:
2024-09-08 23:34:27 +06:00
parent 42985cfa37
commit 7db4f47e82
13 changed files with 46 additions and 95 deletions

View File

@@ -21,4 +21,4 @@ data class GiveawayPrivateResults(
val message: AccessibleMessage? = null,
@SerialName(isStarGiveawayField)
val isStarGiveaway: Boolean = false,
) : GiveawayResults
) : GiveawayResults, ChatEvent, PublicChatEvent

View File

@@ -6,6 +6,6 @@ import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PublicChatEvent
import kotlinx.serialization.Serializable
@Serializable
sealed interface GiveawayResults : ChatEvent, PublicChatEvent {
sealed interface GiveawayResults {
val unclaimedCount: Int
}

View File

@@ -279,7 +279,6 @@ internal data class RawMessage(
users_shared != null -> users_shared
chat_shared != null -> chat_shared
giveaway_created != null -> giveaway_created
giveaway_winners != null -> giveaway_winners
giveaway_completed != null -> giveaway_completed
boost_added != null -> boost_added
chat_background_set != null -> chat_background_set