diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/SetPassportDataErrors.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/SetPassportDataErrors.kt index d98d88574e..80a039fd40 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/SetPassportDataErrors.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/SetPassportDataErrors.kt @@ -1,6 +1,7 @@ package dev.inmo.tgbotapi.requests import dev.inmo.tgbotapi.requests.abstracts.Request +import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest import dev.inmo.tgbotapi.types.* import dev.inmo.tgbotapi.types.passport.PassportElementError import kotlinx.serialization.* @@ -12,8 +13,10 @@ data class SetPassportDataErrors( val user: UserId, @SerialName(errorsField) val errors: List -) : Request { +) : SimpleRequest { override val resultDeserializer: DeserializationStrategy get() = Boolean.serializer() override fun method(): String = "setPassportDataErrors" + override val requestSerializer: SerializationStrategy<*> + get() = serializer() }