1
0
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:
2026-04-07 23:44:13 +06:00
parent e3ae85e067
commit 277c329ab9
5 changed files with 246 additions and 108 deletions

View File

@@ -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()