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
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.RawChat
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chatIdField
|
|
|
|
import kotlinx.serialization.*
|
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class GetChat(
|
|
|
|
@SerialName(chatIdField)
|
|
|
|
override val chatId: ChatIdentifier
|
|
|
|
): ChatRequest, SimpleRequest<RawChat> {
|
|
|
|
override fun method(): String = "getChat"
|
|
|
|
override fun resultSerializer(): KSerializer<RawChat> = RawChat.serializer()
|
|
|
|
}
|