2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.requests.chat.get
|
|
|
|
|
2019-02-07 03:25:49 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.types.ChatRequest
|
2019-02-07 12:25:04 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
|
2018-12-26 08:07:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatIdentifier
|
2019-08-12 09:41:07 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.ExtendedChatSerializer
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedChat
|
2018-12-26 08:07:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chatIdField
|
|
|
|
import kotlinx.serialization.*
|
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class GetChat(
|
|
|
|
@SerialName(chatIdField)
|
|
|
|
override val chatId: ChatIdentifier
|
2019-08-12 09:41:07 +00:00
|
|
|
): ChatRequest, SimpleRequest<ExtendedChat> {
|
2018-12-26 08:07:24 +00:00
|
|
|
override fun method(): String = "getChat"
|
2019-12-02 08:35:37 +00:00
|
|
|
override val resultDeserializer: DeserializationStrategy<ExtendedChat>
|
|
|
|
get() = ExtendedChatSerializer
|
|
|
|
override val requestSerializer: SerializationStrategy<*>
|
|
|
|
get() = serializer()
|
2018-12-26 08:07:24 +00:00
|
|
|
}
|