mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-06-01 13:17:25 +00:00
Compare commits
2 Commits
631a4f16bd
...
eacf01a158
| Author | SHA1 | Date | |
|---|---|---|---|
| eacf01a158 | |||
| dd35631345 |
@@ -1297,8 +1297,8 @@ public final class dev/inmo/tgbotapi/extensions/api/managed_bots/ReplaceManagedB
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/extensions/api/managed_bots/SetManagedBotAccessSettingsKt {
|
||||
public static final fun setManagedBotAccessSettings-4iNBclM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JZLjava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||
public static synthetic fun setManagedBotAccessSettings-4iNBclM$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JZLjava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||
public static final fun setManagedBotAccessSettings-nc95W0g (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||
public static synthetic fun setManagedBotAccessSettings-nc95W0g$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/extensions/api/passport/SetPassportDataErrorsKt {
|
||||
|
||||
@@ -5936,13 +5936,12 @@ public final class dev/inmo/tgbotapi/requests/managed_bots/ReplaceManagedBotToke
|
||||
|
||||
public final class dev/inmo/tgbotapi/requests/managed_bots/SetManagedBotAccessSettings : dev/inmo/tgbotapi/requests/abstracts/SimpleRequest {
|
||||
public static final field Companion Ldev/inmo/tgbotapi/requests/managed_bots/SetManagedBotAccessSettings$Companion;
|
||||
public synthetic fun <init> (JZLjava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
public synthetic fun <init> (JZLjava/util/List;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
public synthetic fun <init> (JLjava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
public synthetic fun <init> (JLjava/util/List;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
public final fun component1-tHkBKVM ()J
|
||||
public final fun component2 ()Z
|
||||
public final fun component3 ()Ljava/util/List;
|
||||
public final fun copy-pU7KfLc (JZLjava/util/List;)Ldev/inmo/tgbotapi/requests/managed_bots/SetManagedBotAccessSettings;
|
||||
public static synthetic fun copy-pU7KfLc$default (Ldev/inmo/tgbotapi/requests/managed_bots/SetManagedBotAccessSettings;JZLjava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/managed_bots/SetManagedBotAccessSettings;
|
||||
public final fun component2 ()Ljava/util/List;
|
||||
public final fun copy-zv9neSE (JLjava/util/List;)Ldev/inmo/tgbotapi/requests/managed_bots/SetManagedBotAccessSettings;
|
||||
public static synthetic fun copy-zv9neSE$default (Ldev/inmo/tgbotapi/requests/managed_bots/SetManagedBotAccessSettings;JLjava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/managed_bots/SetManagedBotAccessSettings;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getAddedUserIds ()Ljava/util/List;
|
||||
public fun getRequestSerializer ()Lkotlinx/serialization/SerializationStrategy;
|
||||
@@ -11561,6 +11560,7 @@ public final class dev/inmo/tgbotapi/types/CommonKt {
|
||||
public static final fun getDartsCubeAndBowlingDiceResultLimit ()Lkotlin/ranges/IntRange;
|
||||
public static final fun getDegreesLimit ()Lkotlin/ranges/IntRange;
|
||||
public static final fun getDeleteMessagesLimit ()Lkotlin/ranges/IntRange;
|
||||
public static final fun getDraftMessageTextLength ()Lkotlin/ranges/IntRange;
|
||||
public static final fun getEmojisInStickerLimit ()Lkotlin/ranges/IntRange;
|
||||
public static final fun getExplanationLimit ()Lkotlin/ranges/IntRange;
|
||||
public static final fun getForwardMessagesLimit ()Lkotlin/ranges/IntRange;
|
||||
@@ -24168,12 +24168,12 @@ public final class dev/inmo/tgbotapi/types/location/StaticLocation$Companion {
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/managed_bots/BotAccessSettings {
|
||||
public static final field Companion Ldev/inmo/tgbotapi/types/managed_bots/BotAccessSettings$Companion;
|
||||
public fun <init> (ZLjava/util/List;)V
|
||||
public synthetic fun <init> (ZLjava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
public final fun component1 ()Z
|
||||
public final fun component2 ()Ljava/util/List;
|
||||
public final fun copy (ZLjava/util/List;)Ldev/inmo/tgbotapi/types/managed_bots/BotAccessSettings;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/managed_bots/BotAccessSettings;ZLjava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/managed_bots/BotAccessSettings;
|
||||
public fun <init> ()V
|
||||
public fun <init> (Ljava/util/List;)V
|
||||
public synthetic fun <init> (Ljava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
public final fun component1 ()Ljava/util/List;
|
||||
public final fun copy (Ljava/util/List;)Ldev/inmo/tgbotapi/types/managed_bots/BotAccessSettings;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/managed_bots/BotAccessSettings;Ljava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/managed_bots/BotAccessSettings;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getAddedUsers ()Ljava/util/List;
|
||||
public fun hashCode ()I
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package dev.inmo.tgbotapi.requests.send
|
||||
|
||||
import dev.inmo.kslog.common.w
|
||||
import dev.inmo.tgbotapi.abstracts.TextedOutput
|
||||
import dev.inmo.tgbotapi.requests.send.abstracts.*
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
@@ -12,6 +13,7 @@ import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
|
||||
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializationStrategyClass
|
||||
import dev.inmo.tgbotapi.types.message.content.TextContent
|
||||
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
||||
import dev.inmo.tgbotapi.utils.DefaultKTgBotAPIKSLog
|
||||
import dev.inmo.tgbotapi.utils.extensions.makeString
|
||||
import dev.inmo.tgbotapi.utils.serializers.UnitFromBooleanSerializer
|
||||
import dev.inmo.tgbotapi.utils.throwRangeError
|
||||
@@ -73,8 +75,8 @@ data class SendMessageDraft internal constructor(
|
||||
}
|
||||
|
||||
init {
|
||||
if (text.length !in textLength) {
|
||||
throwRangeError("Text length", textLength, text.length)
|
||||
if (text.length !in draftMessageTextLength) {
|
||||
DefaultKTgBotAPIKSLog.w("For sendMessageDraft it is required to have length of text in range $draftMessageTextLength, but actual length is ${text.length}")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,8 @@ val getUpdatesLimit = 1 .. 100
|
||||
val callbackQueryAnswerLength = 0 until 200
|
||||
val captionLength = 0 .. 1024
|
||||
val storyCaptionLength = 0 .. 2048
|
||||
val textLength = 0 .. 4096
|
||||
val textLength = 1 .. 4096
|
||||
val draftMessageTextLength = 0 .. textLength.last
|
||||
val userProfilePhotosRequestLimit = 1 .. 100
|
||||
val userProfileAudiosRequestLimit = 1 .. 100
|
||||
val chatTitleLength = 1 until 255
|
||||
|
||||
Reference in New Issue
Block a user