mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
13 lines
463 B
Kotlin
13 lines
463 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 fun resultSerializer(): KSerializer<WebhookInfo> = WebhookInfo.serializer()
|
|
}
|