mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-02 01:42:56 +00:00
PollId now is value class
This commit is contained in:
1 parent
8ec209422a
commit
d963cdae35
8 files changed
+89
-42
No files matched your search
+2
-2
@@ -1,11 +1,11 @@
|
||||
package dev.inmo.tgbotapi.extensions.utils.extensions.raw
|
||||
|
||||
import dev.inmo.tgbotapi.types.PollIdentifier
|
||||
import dev.inmo.tgbotapi.types.PollId
|
||||
import dev.inmo.tgbotapi.types.polls.PollAnswer
|
||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||
|
||||
@RiskFeature(RawFieldsUsageWarning)
|
||||
val PollAnswer.poll_id: PollIdentifier
|
||||
val PollAnswer.poll_id: PollId
|
||||
get() = pollId
|
||||
@RiskFeature(RawFieldsUsageWarning)
|
||||
val PollAnswer.option_ids: List<Int>
|
||||
|
||||
Reference in new issue
Block a user