1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +00:00

update BotCommandNameRegex

This commit is contained in:
InsanusMokrassar 2020-06-02 22:10:33 +06:00
parent 22e8b06fda
commit 69973c597b

View File

@ -4,7 +4,7 @@ import com.github.insanusmokrassar.TelegramBotAPI.utils.throwRangeError
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
val BotCommandNameRegex = Regex("[a-z_0-9]{1,32}")
val BotCommandNameRegex = Regex("^[a-z_0-9]{${botCommandLengthLimit.first},${botCommandLengthLimit.last}}$")
@Serializable
data class BotCommand(