2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.requests.chat.get
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.types.ChatRequest
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatIdentifier
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chatIdField
|
|
|
|
import kotlinx.serialization.*
|
2019-01-17 02:43:51 +00:00
|
|
|
import kotlinx.serialization.internal.IntSerializer
|
2018-12-26 08:07:24 +00:00
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class GetChatMembersCount(
|
|
|
|
@SerialName(chatIdField)
|
|
|
|
override val chatId: ChatIdentifier
|
|
|
|
): ChatRequest, SimpleRequest<Int> {
|
|
|
|
override fun method(): String = "getChatMembersCount"
|
|
|
|
override fun resultSerializer(): KSerializer<Int> = IntSerializer
|
|
|
|
}
|