From 1d99e632a4bf260f43876d85b619166b549c677f Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 22 Jan 2021 23:40:33 +0600 Subject: [PATCH] fix of SetPassportDataErrors request parent interface --- .../dev/inmo/tgbotapi/requests/SetPassportDataErrors.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() }