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

fix of SetPassportDataErrors request parent interface

This commit is contained in:
InsanusMokrassar 2021-01-22 23:40:33 +06:00
parent cdcfaf5a29
commit 1d99e632a4

View File

@ -1,6 +1,7 @@
package dev.inmo.tgbotapi.requests package dev.inmo.tgbotapi.requests
import dev.inmo.tgbotapi.requests.abstracts.Request import dev.inmo.tgbotapi.requests.abstracts.Request
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
import dev.inmo.tgbotapi.types.* import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.passport.PassportElementError import dev.inmo.tgbotapi.types.passport.PassportElementError
import kotlinx.serialization.* import kotlinx.serialization.*
@ -12,8 +13,10 @@ data class SetPassportDataErrors(
val user: UserId, val user: UserId,
@SerialName(errorsField) @SerialName(errorsField)
val errors: List<PassportElementError> val errors: List<PassportElementError>
) : Request<Boolean> { ) : SimpleRequest<Boolean> {
override val resultDeserializer: DeserializationStrategy<Boolean> override val resultDeserializer: DeserializationStrategy<Boolean>
get() = Boolean.serializer() get() = Boolean.serializer()
override fun method(): String = "setPassportDataErrors" override fun method(): String = "setPassportDataErrors"
override val requestSerializer: SerializationStrategy<*>
get() = serializer()
} }