tgbotapi/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/Response.kt

21 lines
523 B
Kotlin

package com.github.insanusmokrassar.TelegramBotAPI.types
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Deprecated(
"Deprecated because incorrect name",
ReplaceWith("Response")
)
typealias ResponseParameters<T> = Response<T>
@Serializable
data class Response<T : Any>(
val ok: Boolean = false,
val description: String? = null,
@SerialName("error_code")
val errorCode: Int? = null,
val result: T? = null,
val parameters: ResponseParametersRaw? = null
)