1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +00:00

fix of serializer for result in SavePreparedInlineMessage

This commit is contained in:
InsanusMokrassar 2024-12-07 10:31:28 +06:00
parent 12dc93313a
commit 397197023e

View File

@ -1,9 +1,9 @@
package dev.inmo.tgbotapi.requests.inline package dev.inmo.tgbotapi.requests.inline
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
import dev.inmo.tgbotapi.requests.answers.InlineQueryAnswersResultsSerializer
import dev.inmo.tgbotapi.types.* import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult 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 dev.inmo.tgbotapi.types.InlineQueries.prepared.PreparedInlineMessage
import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.SerialName import kotlinx.serialization.SerialName
@ -14,7 +14,7 @@ import kotlinx.serialization.SerializationStrategy
data class SavePreparedInlineMessage( data class SavePreparedInlineMessage(
@SerialName(idField) @SerialName(idField)
val userId: UserId, val userId: UserId,
@Serializable(InlineQueryAnswersResultsSerializer::class) @Serializable(InlineQueryResultSerializer::class)
@SerialName(resultField) @SerialName(resultField)
val result: InlineQueryResult, val result: InlineQueryResult,
@SerialName(allowUserChatsField) @SerialName(allowUserChatsField)