From 397197023efd0ccdb7ddfe92bc40f21904204f6a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 7 Dec 2024 10:31:28 +0600 Subject: [PATCH] fix of serializer for result in SavePreparedInlineMessage --- .../tgbotapi/requests/inline/SavePreparedInlineMessage.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/inline/SavePreparedInlineMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/inline/SavePreparedInlineMessage.kt index 114dfe3e14..6546de6e3b 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/inline/SavePreparedInlineMessage.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/inline/SavePreparedInlineMessage.kt @@ -1,9 +1,9 @@ package dev.inmo.tgbotapi.requests.inline import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest -import dev.inmo.tgbotapi.requests.answers.InlineQueryAnswersResultsSerializer import dev.inmo.tgbotapi.types.* import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult +import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.serializers.InlineQueryResultSerializer import dev.inmo.tgbotapi.types.InlineQueries.prepared.PreparedInlineMessage import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.SerialName @@ -14,7 +14,7 @@ import kotlinx.serialization.SerializationStrategy data class SavePreparedInlineMessage( @SerialName(idField) val userId: UserId, - @Serializable(InlineQueryAnswersResultsSerializer::class) + @Serializable(InlineQueryResultSerializer::class) @SerialName(resultField) val result: InlineQueryResult, @SerialName(allowUserChatsField)