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
|
2019-02-27 06:12:39 +00:00
|
|
|
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()
|
2019-02-27 06:12:39 +00:00
|
|
|
}
|