mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
fix pollQuestionTextLength name
This commit is contained in:
parent
527ee306fc
commit
6b045549f9
@ -25,8 +25,8 @@ data class SendPoll(
|
|||||||
ReplyingMarkupSendMessageRequest<RawMessage> {
|
ReplyingMarkupSendMessageRequest<RawMessage> {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
if (question.length !in pollQuectionTextLength) {
|
if (question.length !in pollQuestionTextLength) {
|
||||||
throw IllegalArgumentException("The length of questions for polls must be in $pollQuectionTextLength range, but was ${question.length}")
|
throw IllegalArgumentException("The length of questions for polls must be in $pollQuestionTextLength range, but was ${question.length}")
|
||||||
}
|
}
|
||||||
options.forEach {
|
options.forEach {
|
||||||
if (it.length !in pollOptionTextLength) {
|
if (it.length !in pollOptionTextLength) {
|
||||||
|
@ -32,7 +32,7 @@ val invoiceDescriptionLimit = 1 until 256
|
|||||||
val invoicePayloadBytesLimit = 1 until 128
|
val invoicePayloadBytesLimit = 1 until 128
|
||||||
|
|
||||||
val pollOptionTextLength = 1 .. 100
|
val pollOptionTextLength = 1 .. 100
|
||||||
val pollQuectionTextLength = 1 until 256
|
val pollQuestionTextLength = 1 until 256
|
||||||
val pollOptionsLimit = 2 .. 10
|
val pollOptionsLimit = 2 .. 10
|
||||||
|
|
||||||
val livePeriodLimit = 60 .. 86400
|
val livePeriodLimit = 60 .. 86400
|
||||||
|
Loading…
Reference in New Issue
Block a user