mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-04-09 19:42:26 +00:00
several calls fix
This commit is contained in:
@@ -27,10 +27,10 @@ val Poll.correct_option_id: List<Int>?
|
||||
get() = asQuizPoll() ?.correctOptionIds
|
||||
@RiskFeature(RawFieldsUsageWarning)
|
||||
val Poll.explanation: String?
|
||||
get() = asQuizPoll() ?.text
|
||||
get() = asQuizPoll() ?.explanation
|
||||
@RiskFeature(RawFieldsUsageWarning)
|
||||
val Poll.explanation_entities: TextSourcesList?
|
||||
get() = asQuizPoll() ?.textSources
|
||||
get() = asQuizPoll() ?.explanationTextSources
|
||||
@RiskFeature(RawFieldsUsageWarning)
|
||||
val Poll.open_period: Seconds?
|
||||
get() = scheduledCloseInfo ?.asApproximateScheduledCloseInfo() ?.openDuration ?.seconds ?.toInt()
|
||||
|
||||
Reference in New Issue
Block a user