1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 19:48:43 +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
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<PassportElementError>
) : Request<Boolean> {
) : SimpleRequest<Boolean> {
override val resultDeserializer: DeserializationStrategy<Boolean>
get() = Boolean.serializer()
override fun method(): String = "setPassportDataErrors"
override val requestSerializer: SerializationStrategy<*>
get() = serializer()
}