14 lines
517 B
Kotlin
14 lines
517 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.KSerializer
|
|
import kotlinx.serialization.Serializable
|
|
|
|
@Serializable
|
|
class GetWebhookInfo : SimpleRequest<WebhookInfo> {
|
|
override fun method(): String = "getWebhookInfo"
|
|
|
|
override fun resultDeserializer(): KSerializer<WebhookInfo> = WebhookInfo.serializer()
|
|
}
|