16 lines
579 B
Kotlin
16 lines
579 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.requests.webhook
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.WebhookInfo
|
|
import kotlinx.serialization.*
|
|
|
|
@Serializable
|
|
class GetWebhookInfo : SimpleRequest<WebhookInfo> {
|
|
override fun method(): String = "getWebhookInfo"
|
|
|
|
override val resultDeserializer: DeserializationStrategy<WebhookInfo>
|
|
get() = WebhookInfo.serializer()
|
|
override val requestSerializer: SerializationStrategy<*>
|
|
get() = serializer()
|
|
}
|