tgbotapi/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/webhook/GetWebhookInfo.kt

16 lines
579 B
Kotlin
Raw Normal View History

2019-02-27 06:01:04 +00:00
package com.github.insanusmokrassar.TelegramBotAPI.requests.webhook
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
import com.github.insanusmokrassar.TelegramBotAPI.types.WebhookInfo
2019-12-02 08:35:37 +00:00
import kotlinx.serialization.*
2019-02-27 06:01:04 +00:00
@Serializable
class GetWebhookInfo : SimpleRequest<WebhookInfo> {
2019-02-27 06:01:04 +00:00
override fun method(): String = "getWebhookInfo"
2019-12-02 08:35:37 +00:00
override val resultDeserializer: DeserializationStrategy<WebhookInfo>
get() = WebhookInfo.serializer()
override val requestSerializer: SerializationStrategy<*>
get() = serializer()
}