mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-25 19:48:43 +00:00
potential fix of build
This commit is contained in:
parent
212d8946c8
commit
0087d02b5f
@ -4,7 +4,10 @@ import com.github.insanusmokrassar.TelegramBotAPI.utils.throwRangeError
|
|||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
val BotCommandNameRegex = Regex("^[a-z_0-9]{${botCommandLengthLimit.first},${botCommandLengthLimit.last}}$")
|
// Made as lazy for correct work in K/JS
|
||||||
|
val BotCommandNameRegex by lazy {
|
||||||
|
Regex("^[a-z_0-9]{${botCommandLengthLimit.first},${botCommandLengthLimit.last}}$")
|
||||||
|
}
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class BotCommand(
|
data class BotCommand(
|
||||||
|
@ -65,11 +65,14 @@ val explanationLimit = 0 .. 200
|
|||||||
|
|
||||||
val openPeriodPollSecondsLimit = 5 .. 600
|
val openPeriodPollSecondsLimit = 5 .. 600
|
||||||
|
|
||||||
val telegramInlineModeGifPermittedMimeTypes = listOf(
|
// Made as lazy for correct work in K/JS
|
||||||
BuiltinMimeTypes.Image.Jpg,
|
val telegramInlineModeGifPermittedMimeTypes by lazy {
|
||||||
BuiltinMimeTypes.Image.Gif,
|
listOf(
|
||||||
BuiltinMimeTypes.Video.MP4
|
BuiltinMimeTypes.Image.Jpg,
|
||||||
)
|
BuiltinMimeTypes.Image.Gif,
|
||||||
|
BuiltinMimeTypes.Video.MP4
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
const val chatIdField = "chat_id"
|
const val chatIdField = "chat_id"
|
||||||
const val messageIdField = "message_id"
|
const val messageIdField = "message_id"
|
||||||
|
Loading…
Reference in New Issue
Block a user