1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-29 04:47:48 +00:00
tgbotapi/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/webhook/GetWebhookInfo.kt

14 lines
515 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-03-15 08:12:17 +00:00
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
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"
override fun resultSerializer(): KSerializer<WebhookInfo> = WebhookInfo.serializer()
}