24 lines
1.0 KiB
Kotlin
24 lines
1.0 KiB
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.requests.games
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.types.MessageAction
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.RequestsExecutor
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.games.abstracts.GetGameHighScores
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.Chat
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.abstracts.ContentMessage
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.content.GameContent
|
|
import kotlinx.serialization.*
|
|
|
|
@Serializable
|
|
data class GetGameHighScoresByChat (
|
|
@SerialName(userIdField)
|
|
override val userId: UserId,
|
|
@SerialName(chatIdField)
|
|
override val chatId: ChatId,
|
|
@SerialName(messageIdField)
|
|
override val messageId: MessageIdentifier
|
|
) : GetGameHighScores, MessageAction {
|
|
override val requestSerializer: SerializationStrategy<*>
|
|
get() = serializer()
|
|
}
|