From 117d891ff2f945f37c69742e43b3aaa81e3056b0 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 19 Aug 2023 23:55:59 +0600 Subject: [PATCH] update changelog and PollAnswer --- CHANGELOG.md | 2 ++ .../kotlin/dev/inmo/tgbotapi/types/polls/PollAnswer.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc5c01c6d0..288b73f7b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 9.1.0 +**This update contains adding of [Telegram Bot API 6.8](https://core.telegram.org/bots/api-changelog#august-18-2023) support** + * `Version`: * `Coroutines`: `1.7.2` -> `1.7.3` * `Ktor`: `2.3.2` -> `2.3.3` diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/polls/PollAnswer.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/polls/PollAnswer.kt index d98231241b..d33b180be6 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/polls/PollAnswer.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/polls/PollAnswer.kt @@ -10,7 +10,7 @@ import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder import kotlinx.serialization.encoding.Encoder -@Serializable +@Serializable(PollAnswer.Companion::class) sealed interface PollAnswer: FromUser { val pollId: PollIdentifier override val user: User