mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
fix of SetPassportDataErrors request parent interface
This commit is contained in:
parent
cdcfaf5a29
commit
1d99e632a4
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user