mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
18 lines
476 B
Kotlin
18 lines
476 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.types.polls
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
||
|
import kotlinx.serialization.SerialName
|
||
|
import kotlinx.serialization.Serializable
|
||
|
|
||
|
@Serializable
|
||
|
data class Poll(
|
||
|
@SerialName(idField)
|
||
|
val id: PollIdentifier,
|
||
|
@SerialName(questionField)
|
||
|
val question: String,
|
||
|
@SerialName(optionsField)
|
||
|
val options: List<PollOption>,
|
||
|
@SerialName(isClosedField)
|
||
|
val closed: Boolean = false
|
||
|
)
|