From 53b8cc462543ac1e634f15f63afce3dce5786d41 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 5 Nov 2020 01:15:03 +0600 Subject: [PATCH] update pollQuestionTextLength --- CHANGELOG.md | 1 + .../src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69d289ea47..da3402c380 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ * `PositionedSendMessageRequest` now extends `Locationed` * `LocationContent#createResend` now can create `LiveLocation` * Support of `ProximityAlertTriggered`. It is `CommonEvent` + * Property `pollQuestionTextLength` now have maximum up to `300` * `API`: * Extensions `TelegramBot#pinChatMessage` now support any `Chat` and `Message`s from any `Chat` * New extensions `TelegramBot#unpinAllChatMessages` diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt index 76ec3d21c3..fb2b899d5c 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt @@ -49,7 +49,7 @@ val invoiceDescriptionLimit = 1 until 256 val invoicePayloadBytesLimit = 1 until 128 val pollOptionTextLength = 1 .. 100 -val pollQuestionTextLength = 1 until 256 +val pollQuestionTextLength = 1 .. 300 val pollOptionsLimit = 2 .. 10 val livePeriodLimit = 60 .. 86400