From 5a7741faf629d73d1a0bf2ff23ee99aafb4f02e4 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 1 Jun 2025 22:02:46 +0600 Subject: [PATCH] fix of captionLength --- tgbotapi.core/api/tgbotapi.core.api | 1 + .../src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tgbotapi.core/api/tgbotapi.core.api b/tgbotapi.core/api/tgbotapi.core.api index 90261b7374..3f4c5a7ba6 100644 --- a/tgbotapi.core/api/tgbotapi.core.api +++ b/tgbotapi.core/api/tgbotapi.core.api @@ -10187,6 +10187,7 @@ public final class dev/inmo/tgbotapi/types/CommonKt { public static final fun getPollOptionTextLength ()Lkotlin/ranges/IntRange; public static final fun getPollOptionsLimit ()Lkotlin/ranges/IntRange; public static final fun getPollQuestionTextLength ()Lkotlin/ranges/IntRange; + public static final fun getPostCaptionLength ()Lkotlin/ranges/IntRange; public static final fun getSlotMachineDiceResultLimit ()Lkotlin/ranges/IntRange; public static final fun getStickerKeywordLengthLimit ()Lkotlin/ranges/IntRange; public static final fun getSuggestedTipAmountsLimit ()Lkotlin/ranges/IntRange; 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 d099c46b47..472ce1954d 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 @@ -55,7 +55,8 @@ val horizontalAccuracyLimit = 0F .. 1500F val getUpdatesLimit = 1 .. 100 val callbackQueryAnswerLength = 0 until 200 -val captionLength = 0 .. 2048 +val captionLength = 0 .. 1024 +val postCaptionLength = 0 .. 2048 val textLength = 1 .. 4096 val userProfilePhotosRequestLimit = 0 .. 100 val chatTitleLength = 1 until 255