2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.requests
|
|
|
|
|
2020-02-06 08:25:17 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.RequestsExecutor
|
2018-12-26 08:07:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
|
2020-02-07 18:00:52 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ExtendedBot
|
2019-12-02 08:35:37 +00:00
|
|
|
import kotlinx.serialization.*
|
2018-12-26 08:07:24 +00:00
|
|
|
|
2019-01-25 01:59:52 +00:00
|
|
|
@Serializable
|
2020-01-23 16:32:45 +00:00
|
|
|
class GetMe : SimpleRequest<ExtendedBot> {
|
2018-12-26 08:07:24 +00:00
|
|
|
override fun method(): String = "getMe"
|
2020-01-23 16:32:45 +00:00
|
|
|
override val resultDeserializer: DeserializationStrategy<ExtendedBot>
|
|
|
|
get() = ExtendedBot.serializer()
|
2019-12-02 08:35:37 +00:00
|
|
|
override val requestSerializer: SerializationStrategy<*>
|
|
|
|
get() = serializer()
|
2020-02-06 08:25:17 +00:00
|
|
|
}
|